Hi,
I´m trying to understand how to run a macro from Sheet 1 in a workbook that changes Sheet 3.
Running this code
Excel switches between Sheet 1 and Sheet 3. How could I do instead to run the script from Sheet 1 without switching to Sheet 3 and back?
Thank you in advance!
I´m trying to understand how to run a macro from Sheet 1 in a workbook that changes Sheet 3.
Running this code
Code:
Sub Test1()
Worksheets("Sheet3").Activate
Range("H4").Select
ActiveCell.FormulaR1C1 = "A"
Range("H5").Select
Worksheets("Sheet3").Activate
End Sub
Excel switches between Sheet 1 and Sheet 3. How could I do instead to run the script from Sheet 1 without switching to Sheet 3 and back?
Thank you in advance!