Hi,
I have a macro which works fine. Then, I wanted to write another macro, so I clicked on Record Macro (in Code section of the Developer tab), gave it a name, stopped recording. The new macro name appears as expected in the code section of the Developer tab under Macros. HOWEVER, when I open this new darn macro to edit it, to my surprise, it also contains the previous macro in it which I want to run independently.
See, this is the 'tail end' of the first macro, which is still showing up (along with the full first macro, I have deleted most of which in the example below) in Macro 6 which I want to write and execute independent of the first macro:
.NumberFormat = "@"
.Columns.AutoFit
.Borders.Weight = 2
End With
End Sub
Sub Macro6()
'
' Macro6 Macro
'
'
End Sub
If I delete the first macro code from Macro 6, it removes the first macro from the Macros list altogether!!
Please help. Thanks
I have a macro which works fine. Then, I wanted to write another macro, so I clicked on Record Macro (in Code section of the Developer tab), gave it a name, stopped recording. The new macro name appears as expected in the code section of the Developer tab under Macros. HOWEVER, when I open this new darn macro to edit it, to my surprise, it also contains the previous macro in it which I want to run independently.
See, this is the 'tail end' of the first macro, which is still showing up (along with the full first macro, I have deleted most of which in the example below) in Macro 6 which I want to write and execute independent of the first macro:
.NumberFormat = "@"
.Columns.AutoFit
.Borders.Weight = 2
End With
End Sub
Sub Macro6()
'
' Macro6 Macro
'
'
End Sub
If I delete the first macro code from Macro 6, it removes the first macro from the Macros list altogether!!
Please help. Thanks
Last edited: