UserForm Causes Crash Upon Load/Show - Excel Help & Excel Macro Help
SEARCH ENTIRE SITE LOADING..

Excel Help & Excel Best Practices Forums

 

Proudly Affiliated With: Intelligent Converters & AnalyserXL <Affiliate Program & ExcelUser Affiliate>

 

SPECIALS PAGE FOR BARGAINS | FREE EXCEL TRAINING | FREE CUSTOM FUNCTIONS ADD-IN


Go Back Excel Help & Excel Macro Help > HELP FORUMS > EXCEL HELP
HOME Register Forum Help Calendar Search For Today's Posts Mark Forums Read

Reply

UserForm Causes Crash Upon Load/Show

ANSWERS TO SIMILAR QUESTIONS
Crash On UserForm ShowSet Text & Hide Control On UserForm Show/LoadShow/Load UserForm As Soon As Workbook OpenLoad/Show Userform/MultiPage: Specific Tab OrderLoad/Show userform gives runtime error



Javascript DHTML Drop Down Menu Powered by dhtml-menu-builder.com

Create Excel dashboards quickly with Plug-N-Play reports.


 
Thread Tools Search this Thread
Old 2 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
fireflyon fireflyon is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows XP
Assumed Experience: Average (know many formulas)
Join Date: 21st October 2009
English is 1st Language: Yes
Posts: 11 -- Threads: 0
UserForm Causes Crash Upon Load/Show

i have a user form which is activated by a button. when this button is clicked excel crashs every now and then. i get an error message run time error 75, could not find object. it asks me to debug or end. whatever option i choose when i try to save the worksheet there after excel crashs and closes. any body else have this problem, what could be the cause?
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Ger Plante's Avatar
Ger Plante Ger Plante is online now
Bouncer
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows XP
Assumed Experience: Expert (I wont be needing help)
Join Date: 16th June 2005
English is 1st Language: Yes
Location: Dublin
Posts: 2,555 -- Threads: 52
Re: User Form Crash

Thats weird...

According to MS a RunTime error 75, is a "Path/File access error"

You really to find the line of code it is failing on by clicking on Debug when it crashes.

Alternatively, step through your code using F8.

Are you using new controls on the form from a non-standard library?

Are you accessing a file in remote location which might suddenly not become available, or a file that might become read only. Are you loading inamges from a location... basically anything that is being read, or pulled in from a local hard disk or networked location...?

HTH
Ger
__________________
_______________________________________________
There are 10 types of people in the world. Those that understand Binary and those that dont.

Why are Halloween and Christmas the same? Because Oct 31 = Dec 25...

The BEST Lookup function of all time

Dynamic Named Ranges are your bestest friend

_______________________________________________
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Dave Hawley's Avatar
Dave Hawley Dave Hawley is offline
Administrator
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Above Average
Join Date: 24th January 2003
English is 1st Language: Yes
Location: Australia
Posts: 49,234 -- Threads: 15169
Re: User Form Crash

Could be any one of 1000 reasons.
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
norie's Avatar
norie norie is offline
OzMVP
 
I'm a Spammer: NO
MS Office Version: 2000 English
Op System: Windows Vista
Assumed Experience: Expert (I wont be needing help)
Join Date: 14th July 2004
English is 1st Language: Yes
Posts: 9,763 -- Threads: 21
Re: User Form Crash

Goto Tools>Options... and on the General tab check Break on All Errors.

Now when the code fails and you hit debug you should be taken to the offending line.
__________________
Boo!
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
fireflyon fireflyon is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows XP
Assumed Experience: Average (know many formulas)
Join Date: 21st October 2009
English is 1st Language: Yes
Posts: 11 -- Threads: 0
Re: User Form Crash

i know what line the code fails at, i just dont know why it work sometimes and others it doesn't

VB: AutoLinked keywords will cause extra spaces before keywords. Extra spacing is NOT transferred when copy/pasting, but IS if the keyword uses "quotes".
Sub Button4_Click() inbounds_cmd.Show End Sub

inbounds_cmd.show is where it fails. that code was located in a module. so i moved it to this workbook section, i changed the sub to this

VB: AutoLinked keywords will cause extra spaces before keywords. Extra spacing is NOT transferred when copy/pasting, but IS if the keyword uses "quotes".
Public Sub showuserform() inbounds_cmd.Show End Sub

i am using a shape and assigning the macro to it, so hopefully it works better. my question does it matter if the sub is declared as public or not? and does it maker where the code is located?
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
norie's Avatar
norie norie is offline
OzMVP
 
I'm a Spammer: NO
MS Office Version: 2000 English
Op System: Windows Vista
Assumed Experience: Expert (I wont be needing help)
Join Date: 14th July 2004
English is 1st Language: Yes
Posts: 9,763 -- Threads: 21
Re: User Form Crash

Believe me that isn't the line of code causing the problem.

It might be the one highlighted when you select Debug, but it's the code that is triggered by that line that's the likely culprit.

And if you try my suggestion regarding Tools>Options... then you should find the real culprit.
__________________
Boo!
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Dave Hawley's Avatar
Dave Hawley Dave Hawley is offline
Administrator
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Above Average
Join Date: 24th January 2003
English is 1st Language: Yes
Location: Australia
Posts: 49,234 -- Threads: 15169
Re: User Form Crash

what code is in the Intialize procedure? That will be the problem.
Print [Post / Thread] Reply With Quote
Reply Lifetime Upgrade To Ad Free Styles

   « PREVIOUS Count Cells Containing Specific Word || VBA Macro To Move Data To Summary Sheet Based On ID's NEXT »
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 23:00.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ozgrid is Not Associated With Microsoft. Ozgrid Retains the Rights to ALL Posts and Threads