R
rob nobel
Can someone please tell me why this does not select A1 in all the sheets of
a workbook?
(I know there must be something wrong with the way the loop is designed as
it only does the active worksheet.)
Dim ws As Worksheet
On Error Resume Next
Application.ScreenUpdating = False
For Each ws In ActiveWorkbook.Worksheets
Range("A1").Select
Next
Application.ScreenUpdating = true
End Sub
Also, I notice that when I hover the mouse over the
"Application.ScreenUpdating" part whether it is =true or =false, the yellow
box that appears always says ... = true.
I thought this would show false if false and true if true. So is that not
working as well??
Thank you,
Rob
a workbook?
(I know there must be something wrong with the way the loop is designed as
it only does the active worksheet.)
Dim ws As Worksheet
On Error Resume Next
Application.ScreenUpdating = False
For Each ws In ActiveWorkbook.Worksheets
Range("A1").Select
Next
Application.ScreenUpdating = true
End Sub
Also, I notice that when I hover the mouse over the
"Application.ScreenUpdating" part whether it is =true or =false, the yellow
box that appears always says ... = true.
I thought this would show false if false and true if true. So is that not
working as well??
Thank you,
Rob