+ Reply to Thread
Results 1 to 6 of 6

Select several work sheets in the same book with PP in tab name ...

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    Birmingham
    MS-Off Ver
    Excel 2003
    Posts
    81

    Select several work sheets in the same book with PP in tab name ...

    HI guys I have a pretty heafty workbook wich is nearly done bar optimising and sorting options..
    Many sheets many different names ! but the ones I want to select as a range to be sorted by another sub that is called all start with PP as the tab name!
    *
    I thought the below code would help. I've attempted to modify to no avail :-? any advice guys ??
    *
    Thanks
    *
    Please Login or Register  to view this content.
    *
    Code to be called to sort selected range of sheets this works well when manually selecting a range of sheets !!!
    *
    Please Login or Register  to view this content.
    *
    Thanks again guys

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Select several work sheets in the same book with PP in tab name ...

    You can try

    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    10-15-2012
    Location
    Birmingham
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: Select several work sheets in the same book with PP in tab name ...

    Hey Arlu

    and sorry for late reply, The nippers are on Half term break this week so I'm off work until tomorrow..

    I have tried your suggestion though with open office as thats all thats installed on My laptop.. :-/

    I'm a bit lost as to which code I need to insert though?

    thanks again !

    James

    Quote Originally Posted by arlu1201 View Post
    You can try

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-15-2012
    Location
    Birmingham
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: Select several work sheets in the same book with PP in tab name ...

    Hi9 again Arlu

    Ive added the codes together as below However the Sub never ends lol

    Any Idea's??

    Thanks

    Please Login or Register  to view this content.
    Quote Originally Posted by james 35 View Post
    Hey Arlu

    and sorry for late reply, The nippers are on Half term break this week so I'm off work until tomorrow..

    I have tried your suggestion though with open office as thats all thats installed on My laptop.. :-/

    I'm a bit lost as to which code I need to insert though?

    thanks again !

    James

  5. #5
    Registered User
    Join Date
    10-15-2012
    Location
    Birmingham
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: Select several work sheets in the same book with PP in tab name ...

    Arlu

    I think the problem is that it only select one sheet witht he "PP*" Prefix where as I need to select all of them as an array ie. Sheets(Array("PP*")) or something like that ??

    Thanks

    James

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Select several work sheets in the same book with PP in tab name ...

    How did you manage to get this solved?

    It will be good if you share the solution, for the benefit of other users.

+ 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