+ Reply to Thread
Results 1 to 2 of 2

Help with macro across worksheets and run time error

  1. #1
    Registered User
    Join Date
    06-25-2011
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    25

    Help with macro across worksheets and run time error

    Hi I need a little help with this macro I've been working on. Some of it is from ctrl key macros that I have recorded and a little help from the forum. I ultimately need to get this macro to work across all the sheets in the work book. But only one portion of it works across all the worksheets. And I've been getting the following error. This portion worked on it's own, but combined with all the macros together as one wont!

    ActiveWorkbook.Worksheets.AutoFilter.Sort.SortFields.Clear Runtime error 91 object variable or with block variable not set


    Please Login or Register  to view this content.
    Any help would be greatly appreciated
    Thanx
    MZING81

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,255

    Re: Help with macro across worksheets and run time error

    Possibly because your line of code doesn't specify which worksheet to work on?

    Please Login or Register  to view this content.
    Try delimiting the worksheet, such as...

    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)

Tags for this Thread

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