+ Reply to Thread
Results 1 to 2 of 2

Named Range to store variable for use by other macro on other days

  1. #1
    Registered User
    Join Date
    08-15-2008
    Location
    Mass
    MS-Off Ver
    2016, 64- Bit
    Posts
    28

    Named Range to store variable for use by other macro on other days

    Hello,
    I am trying to use Named Ranges .value property to store variable info so that I can use that variable when needed by other macro's on other days. The code looks like:

    Please Login or Register  to view this content.
    If I refer to the "Active_Indicator" it would return a value of "=x" minus the quotes. I just want to get the x without the equals sign. I am using .value, Not .RefersTo. I could use a Right minus 1 from the length but I was just hoping to get it cleaner than that.

    Any thoughts?

    Regards...
    Last edited by alansidman; 04-26-2019 at 04:41 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Named Range to store variable for use by other macro on other days

    With next statement it seems it could be good
    You could adapt it to your need

    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

+ 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. Store range of a selection into a variable?
    By eljusticiero67 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-12-2015, 05:05 PM
  2. Replies: 3
    Last Post: 03-21-2014, 01:19 PM
  3. Count Days EXCLUDING ONLY Sundays and a named range for Holidays
    By Seaplane Jack in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-14-2014, 05:03 PM
  4. [SOLVED] Automatically answer Named Conflict Dialog with No and set Named range to variable
    By mlj61289 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2013, 08:32 PM
  5. Macro to store a table name as a variable
    By odairtns in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2012, 03:49 PM
  6. Store variable values in macro code
    By Jacques Grobler in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2011, 05:35 AM
  7. Looking up against a variable named range??
    By jghutch in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-25-2006, 08:26 PM

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