LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Excel Crashes when trying to open a User Form

Read Rob's site again. He explains it in the top paragraph.

Brian wrote:

I did run his code cleaner and that fixed the 1st problem. Before running the
code cleaner Excel locked up when you just tried to open the user form.

What exactly does the code cleaner do exactly?

"Dave Peterson" wrote:

I don't have any other guesses.

You could try running Rob Bovey's code cleaner.
You can find it he
http://www.appspro.com/
or directly
http://www.appspro.com/Utilities/CodeCleaner.htm

Or maybe you could create a small test workbook--nothing but the userform (and a
small amount of data--just what you need) to see what happens.


Brian wrote:

I cleared the temp folders out. For some reason after I get done updating the
workbook from the userform. When I go to change worksheets excel locks up.

My user form is a seperate workbook then the Spec workbook.

I am using the Userfom workbook to update several other workbooks. Each of
the other workbooks have 10-15 worksheets each. Can you think of any reasons
for a workbook with no code in it to lock up excel when you go to change from
1 worksheet to another?

"Dave Peterson" wrote:

Can you try it on a different pc--either version of excel is ok with me.

If it works there, then I'd try cleaning my temp folder.

With excel closed
Windows start button|Run
type:
%temp%
and hit enter

Clean all those files that you can. (You may have some files in use, so skip
those.)

Then try your workbook again.

Heck, you could do this first. But if it doesn't work, I'd try the other pc,
too.

And if it didn't work there, then I'd create another small test workbook and see
if it was a corrupted workbook.

Good luck.

Brian wrote:

When I open the workbook and click on the worksheet to open the user form
excels stops working. I get Microsoft Office Excel has stopped working and is
trying find a solution, but it never does.

I have saved it in both 2007 & 2003 versions and both get the same problem.
What is odd is if you open the Userform Workbook, then open the VBA code
window, both userform versions run fine, but if you do not open the Code
window Excel locks up everytime.

Here is the code.

Sheet 2 Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
UserForm1.Show
End Sub

UserForm1 Code:
Private Sub UserForm_Initialize()

With Me.Address_21
.AddItem "1"
.AddItem "2"
.AddItem "3"
.AddItem "4"
.AddItem "5"
End With
End Sub

--

Dave Peterson
.


--

Dave Peterson
.


--

Dave Peterson
 
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
Excel crashes depending on user?? Khuli Excel Discussion (Misc queries) 0 June 17th 09 11:04 AM
See User Form On Open wx4usa Excel Discussion (Misc queries) 13 October 23rd 08 02:56 PM
Open a user form Pietro Excel Discussion (Misc queries) 1 August 29th 07 12:03 PM
use a button to open a user form? Hru48 Excel Discussion (Misc queries) 1 September 1st 05 07:41 PM
vbModeless user form crashes Excel Plutopotamus Excel Programming 2 January 28th 05 03:19 PM


All times are GMT +1. The time now is 05:02 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"