Hello,
after some failures I had I would like to have your help.
I want to run a macro which runs fine when I run it manually but I want a button to do the same sums in multiple sheets.
My workbook has many sheets and I want to run this macro in 4 sheets let say "aaaa_30", "bbbb_31", "cccc_32", "dddd_33"
Thank you
after some failures I had I would like to have your help.
I want to run a macro which runs fine when I run it manually but I want a button to do the same sums in multiple sheets.
My workbook has many sheets and I want to run this macro in 4 sheets let say "aaaa_30", "bbbb_31", "cccc_32", "dddd_33"
Code:
[COLOR=#26282A][FONT='inherit']Sub Sheets_for_autosum()[/FONT][/COLOR]
[COLOR=#26282A][FONT='inherit']
[/FONT][/COLOR]
[COLOR=#26282A][FONT='inherit']Sheets(Array("aaaa_430", "bbbb_431", "cccc_432", "dddd_433")).Select Sheets("aaaa_430", "bbbb_431", "cccc_432", "dddd_433").
Activate Application.Run "myfile.xlsm!AUTOSUMS"[/FONT][/COLOR]
[COLOR=#26282A][FONT='inherit']
End Sub[/FONT][/COLOR]
Thank you