+ Reply to Thread
Results 1 to 4 of 4

macro that only works on the cells I highlight

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Exclamation macro that only works on the cells I highlight

    I want my macro to only work on the cells I highlight. So say columns A and B are populated with numbers and I want the sum of A and B in a new column, column C, but I only want the sum of the values I highlight. So ideally I would highlight the range, then click the button to activate the macro and It would produce the sums of the highlighted rows in column c.

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

    Re: macro that only works on the cells I highlight

    Something like:
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: macro that only works on the cells I highlight

    What you hi-light is what you Select.

    Please Login or Register  to view this content.
    Gary's Student

  4. #4
    Registered User
    Join Date
    08-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: macro that only works on the cells I highlight

    well I'd like to be able to perform any macro/function on the selected cells whether they are in column A or Column Z. I want to be able to select anything anywhere and perform the desired macro on the selected data.

+ 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 to automatically highlight cells.
    By keithaggies2019 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2013, 06:07 PM
  2. [SOLVED] Need macro to highlight cells with nonsequential function
    By burnettec in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-28-2013, 04:58 PM
  3. Highlight cells if they don't match one of two cells (macro)
    By apollo753 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2012, 12:04 AM
  4. Macro for line of balance. Macro to highlight certain cells by certain colours
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2011, 05:04 PM
  5. Macro to highlight cells based on content
    By JimDerDog in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-01-2006, 11:55 AM

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