ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Userform.show '1004 Error' (https://www.excelbanter.com/excel-programming/306392-userform-show-1004-error.html)

Stan

Userform.show '1004 Error'
 
Hello All,

Ok, this is quite a strage question, however I have experienced this problem
and so has a colleague of mine for a different application.

The problem:
Upon clicking a button in order to show my form, I get the '1004'
Application Error.

As of Friday, I had tested it to ensure all was working and it was. Previous
versions of the tool I'm developing work fine with Exactly the same coding.
Hence I'm very confused. The code I've been using to show the form is:

Private Sub CommandButton1_Click()

frmHub.MultiPage1.Value = 0
frmHub.Show

End Sub


Has anyone else experienced this problem or know of bugs/fixes for it?

Thanks

Stan

nath

Userform.show '1004 Error'
 
Try showing the form before you address an onject on it.

Nath
-----Original Message-----
Hello All,

Ok, this is quite a strage question, however I have

experienced this problem
and so has a colleague of mine for a different

application.

The problem:
Upon clicking a button in order to show my form, I get

the '1004'
Application Error.

As of Friday, I had tested it to ensure all was working

and it was. Previous
versions of the tool I'm developing work fine with

Exactly the same coding.
Hence I'm very confused. The code I've been using to show

the form is:

Private Sub CommandButton1_Click()

frmHub.MultiPage1.Value = 0
frmHub.Show

End Sub


Has anyone else experienced this problem or know of

bugs/fixes for it?

Thanks

Stan
.


Alan

Userform.show '1004 Error'
 
"Stan" wrote in message
...

Hello All,

Ok, this is quite a strage question, however I have experienced this
problem and so has a colleague of mine for a different application.

The problem:
Upon clicking a button in order to show my form, I get the '1004'
Application Error.

As of Friday, I had tested it to ensure all was working and it was.
Previous versions of the tool I'm developing work fine with Exactly
the same coding. Hence I'm very confused. The code I've been using

to
show the form is:

Private Sub CommandButton1_Click()

frmHub.MultiPage1.Value = 0
frmHub.Show

End Sub


Has anyone else experienced this problem or know of bugs/fixes for

it?

Thanks

Stan


Not sure if this will fix it, but I normally only show a userform from
the calling sub.

Any other actions, such as frmHub.MultiPage1.Value = 0 I would
normally put in the activate event code.

HTH,

Alan.




All times are GMT +1. The time now is 10:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com