Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello
I've been messing around with VB and managed to write a code which crashes my pc, any reason why ??? I have a dual core 2.5 ghz, vista and excel 2007. Screen went white and froze for 10-15 seconds. Maybe someone else could try and see if it happens to them? Surely I didnt overload or confuse Excel with this; For s = 0 To 65535 Step 5 Cells(4, 4).Interior.Pattern = xlSolid Cells(4, 4).Interior.Color = s Next s Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Another office 2007 problem. works fine with 2003.
"RajenRajput1" wrote: Hello I've been messing around with VB and managed to write a code which crashes my pc, any reason why ??? I have a dual core 2.5 ghz, vista and excel 2007. Screen went white and froze for 10-15 seconds. Maybe someone else could try and see if it happens to them? Surely I didnt overload or confuse Excel with this; For s = 0 To 65535 Step 5 Cells(4, 4).Interior.Pattern = xlSolid Cells(4, 4).Interior.Color = s Next s Thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Works fine if you put
Application.Screenupdating = false before your For. Sounds like you are over loading Excel's ability to update the screen as your code requires it to refresh the screen over 13,000 times..... Bob Flanagan Macro Systems 144 Dewberry Drive Hockessin, Delaware, U.S. 19707 Phone: 302-234-9857, cell 302-584-1771 http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel "RajenRajput1" wrote in message ... Hello I've been messing around with VB and managed to write a code which crashes my pc, any reason why ??? I have a dual core 2.5 ghz, vista and excel 2007. Screen went white and froze for 10-15 seconds. Maybe someone else could try and see if it happens to them? Surely I didnt overload or confuse Excel with this; For s = 0 To 65535 Step 5 Cells(4, 4).Interior.Pattern = xlSolid Cells(4, 4).Interior.Color = s Next s Thanks |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Looks like we've gone 4 years back, not 4 years forward
"Joel" wrote: Another office 2007 problem. works fine with 2003. "RajenRajput1" wrote: Hello I've been messing around with VB and managed to write a code which crashes my pc, any reason why ??? I have a dual core 2.5 ghz, vista and excel 2007. Screen went white and froze for 10-15 seconds. Maybe someone else could try and see if it happens to them? Surely I didnt overload or confuse Excel with this; For s = 0 To 65535 Step 5 Cells(4, 4).Interior.Pattern = xlSolid Cells(4, 4).Interior.Color = s Next s Thanks |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Its a shame that your line of code doesn't allow the colors to change on the
screen But its good to know that code I placed another for loop inside the original, just a dummy to slow it down, and it worked, but obviously not very efficient "Bob Flanagan" wrote: Works fine if you put Application.Screenupdating = false before your For. Sounds like you are over loading Excel's ability to update the screen as your code requires it to refresh the screen over 13,000 times..... Bob Flanagan Macro Systems 144 Dewberry Drive Hockessin, Delaware, U.S. 19707 Phone: 302-234-9857, cell 302-584-1771 http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel "RajenRajput1" wrote in message ... Hello I've been messing around with VB and managed to write a code which crashes my pc, any reason why ??? I have a dual core 2.5 ghz, vista and excel 2007. Screen went white and froze for 10-15 seconds. Maybe someone else could try and see if it happens to them? Surely I didnt overload or confuse Excel with this; For s = 0 To 65535 Step 5 Cells(4, 4).Interior.Pattern = xlSolid Cells(4, 4).Interior.Color = s Next s Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Crash on mouse click | Excel Discussion (Misc queries) | |||
Filtering crash | Excel Discussion (Misc queries) | |||
Excel Crash - Help! | Excel Discussion (Misc queries) | |||
Excel 2003 Crash | Excel Discussion (Misc queries) | |||
Crash | Excel Discussion (Misc queries) |