Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Running a Userform from Excel

Skylark_za,

I think you should try using this code instead...

Sub EnterData()
frmPartLoc.Show
End Sub

I have never had to use "frmPartLoc.Show FALSE" to get a user form to
show...not even sure what the FALSE part even does for that
matter...hope that works.

-Todd

skylark_za wrote:
Please could somebody tell me how I would create a control to run the
userform that I have created for an Excel spreadsheet (Excel 2002).

I have tried using
frmFormName.Show False

but this gives me the following debug message
Sub EnterData()
- frmPartLoc.Show False
End Sub

Any insight as to what I may be doing wrong will be appreciated.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Running a Userform from Excel

Hi Jim and Tom

Thanks for your inputs into my problem. Are you able to send me an email
address so that I can send screen dumps to show you my errors as I have
posted the debug errors in my previous postings and think if I am able to
show my debug errors it may be easier for you diagnose my problem.

Thanks

Jason


"Jim Thomlinson" wrote:

Additionally you should confirm that your code compiles. Debug - Compile
--
HTH...

Jim Thomlinson


"Tom Ogilvy" wrote:

in the vbe, go into tools=Options and under the general tab, change Break on
Unhandled errors to Break in Class Module.

It appears you have an error in the code associated with your userform.
This should allow Excel to highlight the error in that code.


--
Regards,
Tom Ogilvy



"skylark_za" wrote:

I have tried both the following codes o two PCs now, one running Office XP
(2002) and the other Office 2003. I want to call the userform from a Macro.
This is the only code in the Macro and so I am not sure if I am missing
anything.

Sub EnterData() (this line is highlighted yellow in debug)
frmprospects.Show (with and without False)
End Sub

and

Sub InsertData() (this line is highlighted yellow in debug)
frmprospects.Show (with and without False)
End Sub


and the errror I am receiving is:
Compile Error.
"Method or Data member not found"

frmprospects is the name of my userform, so am I calling the correct thing
in the Macro above?

Any ideas what I may still be doing wrong.


Reply
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
How to keep UserForm open at all times while excel is running NFL Excel Discussion (Misc queries) 1 July 8th 09 01:35 AM
Running a UserForm (seemingly) Independent of Excel...? Jacob Excel Programming 5 September 26th 06 04:00 PM
Running GIF in userform Graham Whitehead Excel Programming 0 August 7th 06 05:11 PM
Running Userform Procedure Nigel Excel Programming 1 August 19th 05 07:16 AM
How can I use a worksheet while running a userform? Leo Excel Programming 4 December 17th 03 02:58 PM


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

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

About Us

"It's about Microsoft Excel"