happy_camper
05-17-2020, 04:57 PM
Hello Friends:
I'm new to VBA and learning. This is a very rudimentary question and searched for "applying VBA code to all sheets in the workbook" and couldn't really find anything. I tried some solutions from the web, which look logical but isnt applying my code to all the worksheets
I enclosed my code in the following:
Sub jashdjkhad()
For Each ws In Worksheets
##CODE WENT HERE##
Next ws
End Sub
I thought the text in red above should make it run on all the sheets in the workbook? Thanks for the help.
I'm new to VBA and learning. This is a very rudimentary question and searched for "applying VBA code to all sheets in the workbook" and couldn't really find anything. I tried some solutions from the web, which look logical but isnt applying my code to all the worksheets
I enclosed my code in the following:
Sub jashdjkhad()
For Each ws In Worksheets
##CODE WENT HERE##
Next ws
End Sub
I thought the text in red above should make it run on all the sheets in the workbook? Thanks for the help.