gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
I am getting a Run-time error '424':
Object required
when I try to run this code
I have a UserForm3 not sure whats happening
the debug highlights
UserForm3.Show
Object required
when I try to run this code
I have a UserForm3 not sure whats happening
Code:
Sub Execute()
'MsgBox "Please review the data on each of the ProPricer templates before exporting the data to ProPricer"
UserForm3.Show
UserForm3.LabelProg.Width = 20
UserForm3.LabelProg.Caption = "5%"
DoEvents
EXMaterialsInput
Sheets("Step 6").Range("C12").Value = "Materials Input template updated: " & Now
UserForm3.LabelProg.Width = 40
UserForm3.LabelProg.Caption = "20%"
DoEvents
EXMaterialDistribution
Sheets("Step 6").Range("C13").Value = "Material Distribution template updated: " & Now
UserForm3.LabelProg.Width = 80
UserForm3.LabelProg.Caption = "41%"
DoEvents
EXAssemblies
Sheets("Step 6").Range("C14").Value = "Assemblies template updated: " & Now
UserForm3.LabelProg.Width = 120
UserForm3.LabelProg.Caption = "63%"
DoEvents
EXAssemblyElements
Sheets("Step 6").Range("C15").Value = "Assembly Elements template updated: " & Now
UserForm3.LabelProg.Width = 160
UserForm3.LabelProg.Caption = "82%"
DoEvents
EXProducts
Sheets("Step 6").Range("C16").Value = "Products template updated: " & Now
UserForm3.LabelProg.Width = 195
UserForm3.LabelProg.Caption = "98%"
DoEvents
UserForm3.Hide
End Sub
the debug highlights
UserForm3.Show