LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Spreadsheet screen flickers for a few second when using a condition

Instead of setting screenupdating to false, avoid selecting the sheet:

Private Sub Worksheet_Calculate()
With Sheets("Work Order Request")
If .Range("c20").Value = "yes" Then
.Range("g20").Value = "=c18"
Else
.Range("g20").Value = "Enter CBA Number"
End If
End With
End Sub

If work order request is already the active sheet and
it is the updating of the cell that bothers you, then perhaps look away.


--
Regards,
Tom Ogilvy



"wayne" wrote in message
om...
Hi

When I use the following script in Microsoft Excel to automatically
update a figure based on a yes/no condition in cell c20 the screen
flickers. The value and program does work but it is very pleasant to
watch. Can anyone help?


Wayne


Private Sub Worksheet_Calculate()
Sheets("Work Order Request").Select

If Range("c20").Value = "yes" Then
Range("g20").Value = "=c18"
Else
Range("g20").Value = "Enter CBA Number"
End If
' Range("g20").Value = "=c18"
End Sub





 
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
Screen flickers and text disappears/moves?? G Excel Discussion (Misc queries) 10 March 31st 10 02:28 PM
Display Problem in Excel 2007: Screen flickers an rows blanked out OZL103 Excel Discussion (Misc queries) 2 June 23rd 08 05:23 PM
spreadsheet too large on the screen Hoyos Excel Discussion (Misc queries) 2 December 3rd 06 06:44 PM
my spreadsheet is too far up on the excel screen and I cannot cli. MAB Excel Worksheet Functions 2 October 5th 06 04:43 PM
Spreadsheet off screen bamph Excel Discussion (Misc queries) 1 August 2nd 06 08:10 AM


All times are GMT +1. The time now is 12:41 PM.

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"