+ Reply to Thread
Results 1 to 4 of 4

Grouping tabs with macro

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Grouping tabs with macro

    Odd problem: I have a spreadsheet with around 20 tabs. Half the tabs are detail sheets and the other half are summaries of the detail.

    In order to speed up the configuration of these, I created macros to select either the summaries or the detailed sheets, here is the one for the summaries:

    Sub Select_sheets()
    '
    ' Macro to select all summary sheets'
    '
    ' Keyboard Shortcut: Ctrl+s

    Sheets(Array("UK Summary", "Auto HO", "Auto Lon1", "Auto Lon2", "Auto Lon3", _
    "Auto Lon4", "Auto Lon5", "Auto Lon6", "Auto Lon7", "Auto Lon10", "Auto Man1")). _
    Select
    Sheets("UK Summary").Activate

    End Sub
    Now the odd thing is that, although the tabs are highlighted as if they were grouped, when I try to copy something from one sheet to all the others, it doesn't work. If I select the sheet manually, everything fine, but not with the macro doing the selecting.

    Any help gratefully received

    Robert
    Last edited by MrSums; 02-01-2010 at 09:41 AM.

  2. #2
    Registered User
    Join Date
    01-28-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Grouping tabs with macro

    'Bump' - nobody any clues?

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,997

    Re: Grouping tabs with macro

    As soon as you attempt to run the code, the copy gets cancelled. (You should see the same if you copy, then press Alt+f8 and just cancel). I'd suggest you include the copy in the code.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Registered User
    Join Date
    01-28-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Grouping tabs with macro

    Quote Originally Posted by romperstomper View Post
    As soon as you attempt to run the code, the copy gets cancelled. (You should see the same if you copy, then press Alt+f8 and just cancel). I'd suggest you include the copy in the code.

    D'OH ..

    Cheers

    Robert

+ 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