+ Reply to Thread
Results 1 to 2 of 2

Sort any worksheet

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    Gatineau, Qc, Canada
    MS-Off Ver
    Excel 2007 (Or Anything)
    Posts
    43

    Sort any worksheet

    Good morning all,

    I've read some of the forums posts for sorts, it helps for the start of the code but gives me an error at the end. At the very end, it gives me Error, Object Variable or With block variable not set?

    This will need to be done for any named sheets in different workbooks received.

    Please Login or Register  to view this content.
    Last edited by bassinator; 06-23-2014 at 09:39 AM.
    bassinator

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: Sort any worksheet

    Much better would be to simply record macros, one for each step (perhaps even in separate posts, with specific needs explained), and then post them here. With an example table, if possible.

    A few general - why does your data seem to start in column B? Is column A empty, or is it filled? Your headers appear to be in row 4, so deleting from row 5 down ("'REMOVE DATA FOR TEAM") will cause the data and headers to be mismatched. Is your data always in B to AB, or can it extend beyond? Can you have more than 5000 rows of data? Will the "any worksheet" be constructed the same?
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. Sort data in a worksheet using an array created from another worksheet
    By IamSierraCharlie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2013, 03:10 AM
  2. Excel 2007 : How to sort a worksheet selection that won't sort
    By crossroadsglass in forum Excel General
    Replies: 0
    Last Post: 02-06-2012, 07:17 PM
  3. Compare,Merge and sort data from differnet Excel worksheet in a new worksheet
    By supratik_pwc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2009, 08:23 AM
  4. Link & automatically sort blank worksheet with Data worksheet
    By alaibubu in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-23-2007, 09:31 AM
  5. automaticaly sort selected contents on worksheet to seperate worksheet
    By fuadramsey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2007, 09:16 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