JeffGrant
Well-known Member
- Joined
- Apr 7, 2021
- Messages
- 558
- Office Version
- 365
- Platform
- Windows
Hi All,
can somebody please tell me why this code does not work unless the sheet is selected or activated. Does that not negate the best practice to minimse Select and actvate Statement in my code?
If the sheet is not selected or activated, VBA throws Error 91 code.
thanks in advance
can somebody please tell me why this code does not work unless the sheet is selected or activated. Does that not negate the best practice to minimse Select and actvate Statement in my code?
If the sheet is not selected or activated, VBA throws Error 91 code.
VBA Code:
Sub Timer2Transpose
With Sheet62
.Range("AA4").Select
Selection.ListObject.QueryTable.Refresh BackgroundQuery:=False
End With
End Sub
thanks in advance