Chewyhairball
Active Member
- Joined
- Nov 30, 2017
- Messages
- 312
- Office Version
- 365
- Platform
- Windows
Hi
When cell BG3 contains the text "All Results" the following code runs. It can take up to 5 seconds to run so thought i would just have a textbox popup saying in progress as it was running.
I have placed it in the code where i thought it would be the first thing to run, followed by screenupdating = false to hide the rest of the code while running.
It doesnt seem to matter where i put it the shape only ever appears after the whole code has run! Its driving me mad
Have tried adding code to stop calculations, added application wait time and different iterations of screen updating ture/false but i cannot get the shape to be the first thing that happens when the cell say
"All Results".
When cell BG3 contains the text "All Results" the following code runs. It can take up to 5 seconds to run so thought i would just have a textbox popup saying in progress as it was running.
I have placed it in the code where i thought it would be the first thing to run, followed by screenupdating = false to hide the rest of the code while running.
It doesnt seem to matter where i put it the shape only ever appears after the whole code has run! Its driving me mad
Have tried adding code to stop calculations, added application wait time and different iterations of screen updating ture/false but i cannot get the shape to be the first thing that happens when the cell say
"All Results".
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim myrange As Range
Set myrange = Range("bg3")
If myrange.Value = "All Results" Then
ActiveSheet.Shapes("Rounded Rectangle 27").Visible = True
Application.ScreenUpdating = False
Range("Results1[[#Data],[Comments]]").Select
Call ConvertToComment
Range("Results2[[#Data],[Comments]]").Select
Call ConvertToComment
Range("Results3[[#Data],[Comments]]").Select
Call ConvertToComment
Application.ScreenUpdating = True
End If
End Sub