Related:
- Can't use 2 sheets with a custom function.
- Tentacle locker 2 - Download - Adult games
- Ultimate custom night - Download - Horror
- Fnia 2 - Download - Adult games
- Feeding frenzy 2 download - Download - Arcade
- Euro truck simulator 2 download free full version pc - Download - Simulation
1 response
I share your pain... I have been trying to do the same thing, but with a command button calling a common function.
Ill tell you what I did to get it to work in case it helps you. Basically, I had 6 or 7 very similar sheets in the same workbook, that all have the same buttons on them. Each of the buttons are doing the same function. I had a copy of the function for each button on each sheet - yuk!
This was a pain to maintain. I wanted to make only once copy of each function. So, I used the following wrapper functions in each sheet's VBA holder to call the global function that was in a VBA "module":
Private Sub Paper_Click()
Run "PaperCopy_Items"
End Sub
... then you have in the module:
Function PaperCopy_Items()
...
End Function
That worked for me... But, I can tell you it was painful. If you are anything like me you are a programmer and expected it to be simple right? Like someone should have thought of this before and it would be something that many people want to do? Gee how wrong was I...
Cheers,
Jon
Ill tell you what I did to get it to work in case it helps you. Basically, I had 6 or 7 very similar sheets in the same workbook, that all have the same buttons on them. Each of the buttons are doing the same function. I had a copy of the function for each button on each sheet - yuk!
This was a pain to maintain. I wanted to make only once copy of each function. So, I used the following wrapper functions in each sheet's VBA holder to call the global function that was in a VBA "module":
Private Sub Paper_Click()
Run "PaperCopy_Items"
End Sub
... then you have in the module:
Function PaperCopy_Items()
...
End Function
That worked for me... But, I can tell you it was painful. If you are anything like me you are a programmer and expected it to be simple right? Like someone should have thought of this before and it would be something that many people want to do? Gee how wrong was I...
Cheers,
Jon