andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hi all,
I have this code:
The series continues on for 30 more rows on the spreadsheet. My only challenge is that certain parts require an application.run (and there isn't a set pattern for those)
Any help or advice would be greatly appreciated.
I have this code:
Code:
Private Sub CommandButton1_Click() 'If Sheets("ValuesG").Range("A2").Value = "1" Then
MB01.TextBox1.Text = Sheets("ValuesG").Range("B5").Text
MB01.CommandButton1.Caption = "Continue"
MB01.CommandButton2.Caption = ""
Sheets("ValuesG").Range("A2").Value = "2"
ElseIf Sheets("ValuesG").Range("A2").Value = "2" Then
Application.Run "Module6.mb6"
MB01.TextBox1.Text = Sheets("ValuesG").Range("B6").Text
MB01.CommandButton1.Caption = "Continue"
MB01.CommandButton2.Caption = ""
Sheets("ValuesG").Range("A2").Value = "3"
ElseIf Sheets("ValuesG").Range("A2").Value = "3" Then
MB01.TextBox1.Text = Sheets("ValuesG").Range("B7").Text
MB01.CommandButton1.Caption = "Continue"
MB01.CommandButton2.Caption = ""
The series continues on for 30 more rows on the spreadsheet. My only challenge is that certain parts require an application.run (and there isn't a set pattern for those)
Any help or advice would be greatly appreciated.