Hi, Diane-
Do you mean you'd like to run the same macro on all seven tabs at
once? If yes, then you can modify the macro with a few extra lines of
code to do that.
Your current macro looks like this:
Sub YourMacroName()
{current code}
End Sub
If you'll modify it to read like this:
Sub YourMacroName()
dim Wksht
For Each Wksht In Sheets
If Wksht.Visible = True Then
Sheets(Wksht.Name).Select
{current code}
End If
Next Wksht
End Sub
This runs the same code on all visible worksheets. With a little more
code you can return the cursor to its original starting point (from
where you launched the macro).
Got it, but am a little new to the macro editing portion. Can you be a
little more literal in your direction. One of the tabs is called
Construction ~ can you write specifically the code to include this?
Diane
Do you mean worksheet event code which you have in each sheet's module?
If not, ignore rest of post and look at the other posts.
If, for example each sheet has the same Worksheet_Change code, you can place the
same code into Thisworkbook once and cover all sheets.
Private Sub Workbook_SheetChange _
(ByVal Sh As Object, ByVal Target As Range)
'your code here
End Sub
Gord Dibben MS Excel MVP
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.