select a1 on all sheets

  • Thread starter Piers Clinton-Tarestad
  • Start date
P

Piers Clinton-Tarestad

Is there a simple macro you can write so for every sheet in the current book
a1 is selected i know you can change the workbook so on the event
sheetselect a1 is selected but I only want to select a1 before i close the
file so when the next person opens it everything is set up to view in the
right place

any help gratefully received!
piers
 
H

Harald Staff

Hi Piers

Sure:

Sub test()
Sheets.Select
Range("A1").Select
Sheets(1).Select 'or whatever
End Sub

It flashes a tiny bit. Set screenupdating to False if it bothers you.
 

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

Top