Hi!
What is the difference between Worksheet and General?
Why does my code need to be in Worksheet in order to work?
I cannot seem to add more than one "Sub" to a worksheet, it automatically sends it to General.
Thanks.
Hi!
What is the difference between Worksheet and General?
Why does my code need to be in Worksheet in order to work?
I cannot seem to add more than one "Sub" to a worksheet, it automatically sends it to General.
Thanks.
For info on the different types of Worksheet events type the below in help
You can only use one type e.g only oneWorksheet Object Eventsevent for example.Worksheet_Change
Sub modules should really go in it's own module. You can add a module under the menu Insert module
You can only place code in ThisWorkbook
VBA Noob
_________________________________________
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
Very hard to tell without seeing your code. But here are a few reasons;Why does my code need to be in Worksheet in order to work?
- referencing something that is local to the worksheet, such as a control
- using the ME reference object
- using event code
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks