Move cursor to A1 in all worksheets, relocate A1 to top right, sav

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a macro out there that performs these functions?
1. groups all worksheets in a workbook,
2. moves cursor to A1,
3. relocates A1 to top right of screen,
4. changes all pages to normal view,
5. Ungroups worksheets, and
6. Saves file
 
This should be close...

Sub FormatSheets()
Dim wks As Worksheet

For Each wks In Worksheets
If wks.Visible = xlSheetVisible Then
wks.Select
With wks.Range("A1")
.Select
.Show
End With
ActiveWindow.View = xlNormalView
End If
Next wks
ThisWorkbook.Save
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top