Stryker152
New Member
- Joined
- Aug 17, 2014
- Messages
- 30
Hello,
I am trying to have a macro run in another sheet in my workbook when I insert a new row into my main sheet in the same workbook. Here is the VBA code that I have been using but I cannot figure out how to say that when a new row is inserted run this macro. Here is the code:
Private Sub worksheet_change(ByVal target As Range)
If 'Row insert = True'
Then Application.Run "Sheet#.MacroName"
End Sub
Any help with this would be greatly appreciated.
I am trying to have a macro run in another sheet in my workbook when I insert a new row into my main sheet in the same workbook. Here is the VBA code that I have been using but I cannot figure out how to say that when a new row is inserted run this macro. Here is the code:
Private Sub worksheet_change(ByVal target As Range)
If 'Row insert = True'
Then Application.Run "Sheet#.MacroName"
End Sub
Any help with this would be greatly appreciated.