Access9001
Registered User.
- Local time
- Today, 15:43
- Joined
- Feb 18, 2010
- Messages
- 268
I have code that creates a series of buttons and I want to be able to click the first button and have it pass a value to a function, but if I click a different button, it sends a different value, etc.
The function would IDEALLY be the following:
Sub callsheet(sheetNo as integer)
sheets(sheetNo).Activate
End Sub
Where I could pass in sheetNo depending on which button I click. However, it doesn't seem to let me do this very easily. Any workarounds?
Oh shoot I meant to put this in Excel forum
The function would IDEALLY be the following:
Sub callsheet(sheetNo as integer)
sheets(sheetNo).Activate
End Sub
Where I could pass in sheetNo depending on which button I click. However, it doesn't seem to let me do this very easily. Any workarounds?
Oh shoot I meant to put this in Excel forum
Last edited: