Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There's nothing obviously wrong with the code in context with the limited
information you have given. Regards, Peter T "Brian" wrote in message ... 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 . |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 . |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel crashes depending on user?? | Excel Discussion (Misc queries) | |||
See User Form On Open | Excel Discussion (Misc queries) | |||
Open a user form | Excel Discussion (Misc queries) | |||
use a button to open a user form? | Excel Discussion (Misc queries) | |||
vbModeless user form crashes Excel | Excel Programming |