+ Reply to Thread
Results 1 to 3 of 3

Using Target Column in Range

  1. #1
    Registered User
    Join Date
    08-22-2017
    Location
    Virginia, United States
    MS-Off Ver
    16.0.8326.2076
    Posts
    16

    Using Target Column in Range

    I have the following code:

    Please Login or Register  to view this content.
    I would like to modify this so that the "A" in the range.select is whatever the target's column is... I have tried this with Cells, Address, and Target.Column in different combinations, but my hangup seems to be that when I do I'm specifying the column index instead of the letter. I have come across a few ways to "convert" the column index to the corresponding letter value, but it seems pretty clear that's not the most efficient way.

    Any help would be greatly appreciated.... I'm pretty sure this should be easy.

    Thanks!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Using Target Column in Range

    Try this. I also removed a lot of deadwood from your code.
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    08-22-2017
    Location
    Virginia, United States
    MS-Off Ver
    16.0.8326.2076
    Posts
    16

    Re: Using Target Column in Range

    Works like a charm. Thank ya kindly!

+ 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] Target Column with range
    By locopete999 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-13-2018, 08:36 AM
  2. Target.column for Data Validation would like to target some cells within column
    By iggypop in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2017, 12:35 PM
  3. [SOLVED] If target cell is within table-column range.
    By DMA in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-21-2017, 12:53 AM
  4. [SOLVED] Lock Column Range using Target Reference
    By jdmara in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2015, 02:29 PM
  5. Replies: 5
    Last Post: 12-16-2014, 05:47 PM
  6. [SOLVED] Worksheet_Change(ByVal Target As Range) - set to only update when 3 target cells changed?
    By trillium in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2012, 06:40 PM
  7. Worksheet_CHange (ByVal Target as Range) when target is formula cell
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 07:00 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