+ Reply to Thread
Results 1 to 5 of 5

Go To Cell A1 automatically when opening a sheet

  1. #1
    Forum Contributor
    Join Date
    11-30-2020
    Location
    Ny
    MS-Off Ver
    Office 365
    Posts
    173

    Go To Cell A1 automatically when opening a sheet

    I have a workbook with 13 sheets, I would like each sheet when opened to have cell A1 selected, and when closing remember the sheet that was active and open to that sheet next time the workbook is used. Any help is appreciated, thanks in advance!

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Go To Cell A1 automatically when opening a sheet

    Hi,

    In the ThisWorkbook module, this will select call A1 when a sheet is selected...

    Please Login or Register  to view this content.
    For a workbook to open on the last selected sheet, again in the workbook module....

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    11-30-2020
    Location
    Ny
    MS-Off Ver
    Office 365
    Posts
    173

    Re: Go To Cell A1 automatically when opening a sheet

    So I tried this....
    Private Sub Workbook_Open()
    Dim WSheet As Worksheet

    For Each WSheet In Worksheets
    WSheet.Activate
    Range("A1").Select
    Next
    End Sub

    It does work however, it goes to the last sheet in the workbook I would like the workbook when opened to go to the last active sheet cell A1.

  4. #4
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,987

    Re: Go To Cell A1 automatically when opening a sheet

    Does this work for you?

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-30-2020
    Location
    Ny
    MS-Off Ver
    Office 365
    Posts
    173

    Re: Go To Cell A1 automatically when opening a sheet

    Works like a champ !! Thank You so much !

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 05-06-2018, 09:45 AM
  2. [SOLVED] VBA editor automatically opening up after screen saver, laptop closing/opening etc...
    By clogistics in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-08-2016, 12:22 PM
  3. Replies: 2
    Last Post: 03-27-2013, 05:54 PM
  4. Opening Workbooks Automatically Versus a User Opening Them
    By tmanes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2012, 03:00 AM
  5. Sheet Navigator Not Opening Automatically
    By JessFace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-11-2010, 02:10 PM
  6. Load a listbox automatically on opening a sheet
    By GWB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-23-2010, 11:06 AM
  7. Opening a Sheet Based on a Cell's Value
    By Mhz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-09-2007, 05:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1