+ Reply to Thread
Results 1 to 2 of 2

Run a macro when cell selected in every nth column

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    7

    Run a macro when cell selected in every nth column

    My data Lies between A5:AZ1500
    what i need is:
    Run Macro1 when cell selected lies in A5:A1500, D5:D1500, G5:G1500........ every fourth column
    Run Macro2 when cell selected lies in B5:B1500, E5:E1500, H5:H1500........ every fourth column
    Run Macro3 when cell selected lies in C5:C1500, F5:F1500, I5:I1500........ every fourth column

    Thanks.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Run a macro when cell selected in every nth column

    That's actually every 3rd column... In the sheet module, something like this:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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] Macro to move any selected cell to a specific column on the same row
    By Jonah Mulski in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-30-2013, 12:23 PM
  2. [SOLVED] Run macro depending on what data is in column C of the selected row
    By lealea1982 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2013, 08:47 AM
  3. [SOLVED] Need MACRO to copy the text in the cell left of first selected cells (a column), paste all
    By joobeng in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-16-2013, 06:42 AM
  4. Need macro to verify that the selected cell is in column B before running, how?
    By MrRenda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2012, 03:54 PM
  5. Code to run macro on selected column
    By u039307 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2010, 07:11 PM
  6. [SOLVED] How to pop up a Macro when the cell in one column is selected-urge
    By Turboj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2006, 10:30 PM
  7. Macro to take selected cells times a selected cell
    By Craig in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2005, 08: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