Icreated a VBA code to create a new workbook where to copy paste a range from another workbook. I now would like to add the possibility of highlight all the cells that might change in the newly created workbook.
This is my code:
Sub Copy_Value_To_New_Workbook()
'Step 1 Copy the data
Sheets("ACTIVITY LOG").Range("A1:O10000").Copy
'Step 2 Create a new workbook
Workbooks.Add
'Step 3 Paste the data
ActiveSheet.Paste Destination:=Range("A1")
'Step 4 Turn off application alerts
Application.DisplayAlerts = False
'Step 5 Save the newly created workbook
ActiveWorkbook.SaveAs _
Filename:="Activity_log_piano.xlsx"
'Step 6 Turn application alerts back on
Application.DisplayAlerts = True
'Step 7 highlights cells when changed
End Sub
thank u for your help!!