+ Reply to Thread
Results 1 to 4 of 4

Macro's messing up calculations of named ranges

  1. #1
    Registered User
    Join Date
    01-07-2008
    Posts
    42

    Macro's messing up calculations of named ranges

    I have a rather large spreadsheet with 55 columns of which 24 perform logic calculations and when said and done could be upwards of 50,000 to 100,000 rows of data. I have made named ranges out of all columns to make my sumifs easier to work with. Problem is I have a couple of small subs to toggle the logic in a couple of columns and when I run them it trashes my calculations on another sheet of which I'm using the named ranges.

    subs

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Just looking for some suggestions...
    Thanks much

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Macro's messing up calculations of named ranges

    How are the named ranges defined?

    What are the formulas that refer to the named ranges?

    What do you mean by "trashes my calculations"? Are they giving wrong answers? Errors?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-07-2008
    Posts
    42

    Re: Macro's messing up calculations of named ranges

    Quote Originally Posted by 6StringJazzer View Post
    How are the named ranges defined?

    What are the formulas that refer to the named ranges?

    What do you mean by "trashes my calculations"? Are they giving wrong answers? Errors?
    Thanks 6String for your question as it made me look a little closer and the answer was staring me in the face. I was not specifying the worksheet in the subs so it was overwriting my SUMIFS on the other worksheet with the inserted formula. I will try to be more diligent in solving my own problems before I ask for help next time. Will Mark solved.

    Thanks again,

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Macro's messing up calculations of named ranges

    Don't worry--it's always obvious once you know the answer. Don't hesitate to ask questions--that's what we're here for.

    I am delighted that you solved this just by thinking about the questions I asked.

+ 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. macro for month named ranges
    By freshfruit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2014, 05:50 PM
  2. [SOLVED] Create named ranges using a macro?
    By billj in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-11-2013, 11:19 AM
  3. Macro for two named ranges
    By No.Solutions. in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-24-2009, 05:53 PM
  4. Macro: Named Ranges
    By howardjo in forum Excel General
    Replies: 2
    Last Post: 06-27-2007, 03:37 AM
  5. [SOLVED] Macro eliminating named ranges
    By JonR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2005, 10:06 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