Hi team,
I am writing a flow like this:
Launch an excel file "Data_1"
runs a macro which refresh a certain table
Save and Close it
I have set a variable for timestamp.
Opens a second excel file "Report"
Run a macro which refresh a power Query reading data from the first excel file "Data_1"
In my excel file I have a hidden sheet named "SETTING" which I want the flow to unhide it, write in a certain cell the timestamp and hide again the sheet before saving it.
I am struggling to write the vb script to do that but the only thing I have found in the web is how to open and unhide all the sheets with the vb script. I Don't want that, I want to unhide a certain sheet from the already opened excel file.
What I have found is:
Set Variable ExcelFile and to the value is the excel path.
'Opens the Excel file'
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open("%ExcelFile%")
objExcel.Application.Visible = True
'Unhides all the worksheets of the Excel file'
For i=1 To objWorkbook.Sheets.Count
objWorkbook.Sheets(i).Visible = True
Next
'Saves and closes the Excel file'
objWorkbook.Save
objWorkbook.Close SaveChanges = True
Any ideas?
Thank you in advance,
Eleftheria