+ Reply to Thread
Results 1 to 6 of 6

Macro to take all tabs to cell A1

  1. #1
    Forum Contributor
    Join Date
    12-06-2005
    Posts
    118

    Macro to take all tabs to cell A1

    Before I save a file, I like to make sure that all the tabs are on cell A1. I usually do this by hitting Ctrl+Home on every tab. Can I write a macro that will do this for me? If so, how?


    TIA!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    06-12-2008
    Location
    Newbury
    MS-Off Ver
    Office 365 ProPlus
    Posts
    92
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,461
    This in the immediate window will do it.

    Please Login or Register  to view this content.
    Or this is you want to end up at the front sheet
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Forum Contributor
    Join Date
    12-06-2005
    Posts
    118
    That is awesome! Thank you. Is there any way I can set the macro to return to the top of a window that is frozen? For example, if I froze the pane at cell G3 on a certain tab, it would return the cell to G3 like Ctrl+Home does. I know I'm being picky here but I have a worksheet that has several tabs of which a few are frozen at certain cells.


    TIA.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try this

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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