+ Reply to Thread
Results 1 to 3 of 3

Code to select a range of cells based on cursor location

  1. #1
    Registered User
    Join Date
    09-18-2006
    Posts
    14

    Code to select a range of cells based on cursor location

    So I tried to record a macro to do this, however recording a macro based on cursor location was something I couldn't figure out doing.

    Basically, I need a macro that would select columns B through M of a specific row. That row however is based on the cell that my cursor has selected.

    So for example, if I've selected the cell J5, the macro would select B5 through M5.

    Thank you all once again.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    See reply #4 in this thread:

    http://www.excelforum.com/showthread.php?t=585121

  3. #3
    Registered User
    Join Date
    09-18-2006
    Posts
    14
    Wow, so simple, I couldn't figure out how to use the range.select part.
    Awesome, thank you sir.

+ 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