d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > Vba Halp
Add Reply New Topic New Poll
Member
Posts: 432
Joined: Jul 29 2016
Gold: 0.00
Aug 11 2016 12:18pm
Quote
Option Explicit
Dim base As Integer


Private Sub Baseball_Click()
Dim base As Integer
base = 1
End Sub

Private Sub Basketball_Click()
Dim bask As Integer
bask = 1
End Sub

Private Sub Cancel_Click()

End Sub

Private Sub Foot_Click()
Dim Foot As Integer
Foot = 1
End Sub

Private Sub Games_Click()
Dim Games As Integer
Games = 1
End Sub

Private Sub ok_Click()
MsgBox (base)
End Sub

Private Sub TV_Click()
Dim TV As Integer
TV = 1
End Sub


See what I'm trying to do here? I don't know how to share the data between subs. For example I want the ok sub to recognize that base = 1. How can I do that?
Member
Posts: 432
Joined: Jul 29 2016
Gold: 0.00
Aug 11 2016 01:43pm
Quote (dankmemes1337 @ Aug 11 2016 02:18pm)
See what I'm trying to do here? I don't know how to share the data between subs. For example I want the ok sub to recognize that base = 1. How can I do that?


nvm got it
Go Back To Homework Help Topic List
Add Reply New Topic New Poll