+ Reply to Thread
Results 1 to 4 of 4

Vba to name a active cells in a column

  1. #1
    Forum Contributor
    Join Date
    06-01-2015
    Location
    Chennai,India
    MS-Off Ver
    Microsoft Office 2021
    Posts
    146

    Smile Vba to name a active cells in a column

    Hi all,

    I have the following code which will filter the columns as per my requirement but after filtering the columns i need to name the active cells as "Ship" in the column "Remarks" based on the used range column A. Please assist. Refer the snapshot for the output.

    Snapshot 1.PNG

    Please Login or Register  to view this content.
    Attached Images Attached Images

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Vba to name a active cells in a column

    references etc aren't altogether clear but, in essence, once filters are applied iterate the areas in the visible range

    Please Login or Register  to view this content.
    you would likely want an error handler in there, should there be no visible rows (aside the header) - i.e. nothing matches filter

  3. #3
    Forum Contributor
    Join Date
    06-01-2015
    Location
    Chennai,India
    MS-Off Ver
    Microsoft Office 2021
    Posts
    146

    Re: Vba to name a active cells in a column

    Thanks a lot. It is working fine.. But the "Ship" has been applied throughout the entire column which is till the row 100000 but i need to apply the "Ship" only for the filtered range which based on column A.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,380

    Re: Vba to name a active cells in a column

    Insert this after the filter...Change J to your Column...
    Please Login or Register  to view this content.
    Edit eg...

    Please Login or Register  to view this content.
    Last edited by sintek; 03-14-2019 at 07:22 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

+ 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. Copy Selected active cells down to right column
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2018, 09:07 PM
  2. [SOLVED] UNSOLVED - Identify highlighted cells in column, copy cell value to column B of active row
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-16-2014, 04:42 AM
  3. Replies: 0
    Last Post: 04-04-2012, 02:50 PM
  4. Getting a Macro to run on Active Cells in a Column
    By owen3carrots in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-15-2011, 10:47 AM
  5. Renaming dynamic cells in an active column
    By 0phd0 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2008, 02:27 AM
  6. Select certain cells in active column
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2008, 10:08 AM
  7. how do I select cells in column A thru F in the active row?
    By jonco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2005, 10: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