Power Automate - Automatically fetch data from Power BI in to Excel and Send the copy of the Excel file via Email Step-1 Step-2 Step-3 Using Command text we can make changes in the data we fetch from the Power BI. Like add fields/columns, filter data, rename columns. It is a DAX formula. Step-4 Step-5 Step-6 Step-7 Posting message on Teams. We can post message to a Teams Group also by selecting Group chat from Post in and select the Teams Group from the Group chat dropdown that will appear after making selection. Step-8 Location: We need to select the Group on SharePoint in which our file is located. Document Library: We need to select the Documents option from the dropdown. File: Select the file on which you want to run the script. Script: Select the script to perform the desired action. Step-9 Step-10 Step-11 Using Filter Query we can decide which file properties we want to get. We are performing this step to attach excel as an attach...
Have you ever come across the data where the text (characters) and numbers are put together in a single cell. Like Employee Name and Employee Code, Customer Name and Customer Number, etc. If the answer is Yes and you want to learn how to separate them using formula then this post is definitely for you. This type of data comes into three flavours: 1) Text and Number (Sujeet123) 2) Number and Text (123Sujeet) 3) Text and Numbers tangled (S1u2j3e4e5t6, 1s2u3j4e5e6t) We can separate the first 2 types using the formula and for 3rd type, we need to write a few lines of code (Macro). Let's start with the First one: 1) Text and Number (Sujeet123) Ex-1 Let's assume that Cell A2 holds Sujeet123 in Sheet1. we will use the below formula with the Left and Right function to separate the Text and Number . =Min(find({01,2,3,4,5,6,7,8,9},A2&"0123456789")) The above formula will give us the starting position of the first Number. To find the Text Part put the below...
FSO - Check If a file exists, if exists then delete the file. Dim fso As Scripting.FileSystemObject Sub test() Application.ScreenUpdating = False Set fso = New Scripting.FileSystemObject Dim flname As String flname = "D:\Excel Practice\Test.txt" If Not fso.FileExists(flname) Then Exit Sub Else 'flname.Delete--------Incorrect fso.DeleteFile (flname) '---Correct MsgBox "file deleted", vbInformation End If Application.ScreenUpdating = True End Sub '--------------------------------------------- Sub DeleteAllFilesFromAFolder() Dim fso As Object Dim fd As Object Dim fl As Object Dim str_Path As String str_Path = "D:\New Folder\" Set fso = CreateObject("Scripting.FileSystemObject") Set fd = fso.getfolder(str_Path) For Each fl In fd.Files fl.Delete Next fl End Sub Delete a file without using Loop If obj_fso.fileexists(ThisWorkbook.Path & "\" & "xyz.xlsx") Then obj_fso.Deletefile ThisWorkbook.Path & ...
Comments
Post a Comment