T
Tom
Hi all - Could use some help on this one.
I've got a module and two userforms. When I try to show the second userform
I get an error message of "runtime error '52' bad file name or number" and it highlights
my form2.show command.
When I run the same code on my home machine it works, but on my office machine I get
the error message.
Any suggestions on what can be causing this and how to fix it?
If it helps, here are the two ways I've tried to show the second form based on some previous
posts:
In module
Sub StartMyForm()
Form1.show
End Sub
In Form1
CmdButton1_Click
Displays a dialog box
CmdButton2_Click
Displays another dialog box
CmdButton3_Click
Me.Hide
Function1
Function2
Form2.Show (This is the line highlighted after the error message)
I've also tried this method but got the same error message:
In module
Sub StartMyForm()
Form1.Show
Form2.Show
Unload Form1
Unload Form2
End Sub
Again, both methods worked on my home machine, neither works on the office machine.
Any help would be greatly appreciated.
Thanks in advance.
Tom
I've got a module and two userforms. When I try to show the second userform
I get an error message of "runtime error '52' bad file name or number" and it highlights
my form2.show command.
When I run the same code on my home machine it works, but on my office machine I get
the error message.
Any suggestions on what can be causing this and how to fix it?
If it helps, here are the two ways I've tried to show the second form based on some previous
posts:
In module
Sub StartMyForm()
Form1.show
End Sub
In Form1
CmdButton1_Click
Displays a dialog box
CmdButton2_Click
Displays another dialog box
CmdButton3_Click
Me.Hide
Function1
Function2
Form2.Show (This is the line highlighted after the error message)
I've also tried this method but got the same error message:
In module
Sub StartMyForm()
Form1.Show
Form2.Show
Unload Form1
Unload Form2
End Sub
Again, both methods worked on my home machine, neither works on the office machine.
Any help would be greatly appreciated.
Thanks in advance.
Tom