+ Reply to Thread
Results 1 to 2 of 2

How do you make VBA perform a macro on EACH activecell highlighted?

  1. #1
    Forum Contributor
    Join Date
    12-03-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    107

    How do you make VBA perform a macro on EACH activecell highlighted?

    So for example, I have a code that enters certain data beside the active cell.

    Please Login or Register  to view this content.
    But what if the user highlights range A1 to A5, I want to make it so that my following code will apply to the entire range. Is that possible?

    or maybe if the user uses CONTROL+CLICK and jump and highlight non contiguous cells like Range A1 and Range A12 and he runs the macro, i want my code to apply on Range A1 and Range A12, is that possible?

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: How do you make VBA perform a macro on EACH activecell highlighted?

    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)

Similar Threads

  1. [SOLVED] How to highlight and entire column and make the macro perform on each cell ?
    By kjy1989 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2013, 01:47 AM
  2. [SOLVED] How do you make the activecell go back to its original position in this example? Help...
    By kjy1989 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2013, 01:25 PM
  3. Replies: 0
    Last Post: 12-05-2012, 02:18 PM
  4. To make sound if all cells become highlighted?
    By asha24 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-25-2010, 04:48 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