I need to change this Change_Event to a sub I can call from other sub
Is it possible
![]()
Please Login or Register to view this content.
I need to change this Change_Event to a sub I can call from other sub
Is it possible
![]()
Please Login or Register to view this content.
The Worksheet_Change event procedure is triggered by changes to the worksheet. If your other sub makes changes to the worksheet, it is in effect calling the Worksheet_Change procedure.
If you want to make it a standalone procedure, You could use just this part of the code.
Change the Sheet1 to the name of the sheet that was changed. And define the cRow as the row number that your code changed.![]()
Please Login or Register to view this content.
Surround your VBA code with CODE tags e.g.;
[CODE]your VBA code here[/CODE]
The # button in the forum editor will apply CODE tags around your selected text.
Thanks AlphaFrog
I get this Error.
I am not shure how I define the cROw
1.JPG
Target is not defined. In the Worksheet_Change procedure, Target is the cell(s) that were changed. In your procedure, you have to specify what cells were changed. You have to define Target as a range of cell(s).
Thanks for your help,
I am not shure on how to define that. It can be any Cell in Range("F8:CW1000")
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks