Skip to content

Instantly share code, notes, and snippets.

@troter
Created January 4, 2010 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save troter/268399 to your computer and use it in GitHub Desktop.
Save troter/268399 to your computer and use it in GitHub Desktop.
Activate A1 All.
Attribute VB_Name = "ExcelUtil"
Sub ActivateA1All()
Dim Index
For Index = 1 To Worksheets.Count
With Worksheets(Index)
.Activate
.Cells(1, 1).Activate
End With
Next
Worksheets(1).Activate
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment