+ Reply to Thread
Results 1 to 3 of 3

Make Variable equal to active range in sheet

  1. #1
    Forum Contributor
    Join Date
    06-17-2012
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    150

    Make Variable equal to active range in sheet

    I would like to run a calculation based on selected active range in sheet. I tried several methods and cannot make it work. This is what I have so far,

    Please Login or Register  to view this content.
    Thanks for any help.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Make Variable equal to active range in sheet

    Hi,

    If you deefine mySelection as a range you need to use the set command (because it is an object).

    So either:
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-17-2012
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    150

    Re: Make Variable equal to active range in sheet

    Thank you so much. I learned something new today with your explanation.

+ 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. Make the active worksheet name a variable when using .CELL function
    By slopsy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2013, 04:24 AM
  2. Make a Date variable equal a single-cell array formula
    By Shamala in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2012, 06:29 PM
  3. How to make one range equal EXACTLY another range including formats
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2011, 06:52 PM
  4. How do I set a range equal to a variable?
    By fugima in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2011, 01:54 PM
  5. [SOLVED] In Excel, how do you make one whole sheet equal to another.
    By ryan in forum Excel General
    Replies: 2
    Last Post: 08-31-2005, 03:05 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