+ Reply to Thread
Results 1 to 3 of 3

error using variable over multiple worksheets

  1. #1
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    error using variable over multiple worksheets

    Good Afternoon All,

    Getting an error on the highlighted line, it works for the first sheet it scans through but once it gets to an encounter on the 4th sheet its kicking up a fuss. Any ideas would be much appreciated.

    Please Login or Register  to view this content.
    Thanks,

    R

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: error using variable over multiple worksheets

    you should really fully qualify references

    Please Login or Register  to view this content.
    As that code is within the required WITH statement you should be able to use

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: error using variable over multiple worksheets

    Cheers Andy,

    Whats odd is that I originally had something along those lines but the range was still pulling values through form the first sheet and causing errors.

    Just replaces the line and its working perfectly now though!

    Thank you kindly chap!

    R

+ 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. Sum different columns from multiple worksheets..multi variable
    By berbchid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-03-2013, 10:33 AM
  2. [SOLVED] Need help with formula to sum certain cells in multiple worksheets depending on a variable
    By niftysquirrel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2013, 12:12 PM
  3. Multiple Variable Worksheets problem -vbscript
    By SeraphicSoul in forum Excel General
    Replies: 0
    Last Post: 06-18-2012, 01:55 AM
  4. Combining variable length lists from multiple worksheets
    By xvart in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2008, 02:45 PM
  5. Concatenate across multiple worksheets based on variable
    By rpatton1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-09-2008, 03:35 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