Sharid
Well-known Member
- Joined
- Apr 22, 2007
- Messages
- 1,064
- Office Version
- 2016
- Platform
- Windows
I have moved some code into a Module called "Location" and I am trying to Run it from there when needed.
The Code is Run by using the following code
This code has been moved to a Module CALLED "Location"
I keep getting and error message here as soon as I change a Tab on this line of code below and I can't work it out.
The Code is Run by using the following code
VBA Code:
Private Sub LocationTabStrip_Change()
'On Tab Change Call This Module
Application.Run "Location.LocationTabStrip"
End Sub
This code has been moved to a Module CALLED "Location"
VBA Code:
Private Sub LocationTabStrip()
'### CHANGE FRAME CAPTIONS WHEN TAB IS SELECTED -
Select Case LocationTabStrip.Value
Case Is = 0
LocationFrame.Caption = "London"
Case Is = 1
LocationFrame.Caption = "Birmingham"
Case Is = 2
LocationFrame.Caption = "Nottingham"
Case Is = 3
LocationFrame.Caption = "Derby"
Case Is = 4
LocationFrame.Caption = "Manchester"
End Select
End Sub
I keep getting and error message here as soon as I change a Tab on this line of code below and I can't work it out.
VBA Code:
Select Case LocationTabStrip.Value