+ Reply to Thread
Results 1 to 5 of 5

How to specify a range for a macro to run

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    How to specify a range for a macro to run

    I have a macro that I created with the help of others and I need to start the macro at different cells which vary by tabs within the workbook.

    How do I specify a range to where I can click any cell in any tab and have the macro function how it's designed to do?

    Thanks guys and gals!
    Last edited by bburrus; 05-14-2013 at 09:09 AM.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: How to specify a range for a macro to run

    Your question is too vague. To the end of the column? To the end of the row? If it's only the active cell, then use ActiveCell.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    04-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to specify a range for a macro to run

    I have a worksheet with multiple tabs in it. There are month timelines that end and start at different cells. This macro below extends the months to a user specified amount but it only does this from whatever data is on cell A4. I need to be able to click on any cell on any worksheet and be able to run the timeline extension.

    Please Login or Register  to view this content.
    Last edited by Leith Ross; 05-03-2013 at 03:36 PM. Reason: Added Code Tags

  4. #4
    Registered User
    Join Date
    04-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to specify a range for a macro to run

    Where would I put the ActiveCell in my formula. I'd obviously have to take something out

  5. #5
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: How to specify a range for a macro to run

    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)

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