LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default User form error when opened


I am trying to develop a user form, named frmPAFD, in Excel 2000. I try
to write a macro to open the form. It is simple, all I put is:

frmPAFD.Show

I have this in its own macro. However when I try to run it i get the
error:
"Object required" The only way I could get it to open was in its
initialize event. There I input:

frmPAFD.show

It has also worked with:
Load frmPAFD
frmPAFD.Show

But when I try to close it using a button I programed i get the same
error and it jumps to the same line of code in my Macro. The only way
I can view the form is if I do the frmPAFD.Show in the event mentioned
earlier. I have consulted help pages both in excel and on
Microsoft.com as well as other websites. They all say to view the form
just type:

frmPAFD.Show 'In its own Macro.

Am I missing something like a reference or am I doing something wrong?
Please let me know, and thanks for your help.

theguz


--
theguz
------------------------------------------------------------------------
theguz's Profile: http://www.excelforum.com/member.php...o&userid=24918
View this thread: http://www.excelforum.com/showthread...hreadid=384565

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing Excel user form generates error Ken Warthen Excel Discussion (Misc queries) 0 October 10th 07 08:30 PM
MS JET database engine error: workgroup information file is missing or opened exclusively by another user Tina Excel Discussion (Misc queries) 0 August 24th 05 01:40 AM
User Form Error theguz Excel Discussion (Misc queries) 3 August 15th 05 10:49 PM
Run Time Error 424 Combo Box User Form Jennifer Excel Programming 3 April 7th 05 08:23 PM
User Form-error 1004 unless opened in sheet w/combobox data dpaulos[_2_] Excel Programming 2 January 27th 04 03:25 AM


All times are GMT +1. The time now is 09:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"