+ Reply to Thread
Results 1 to 3 of 3

Find last cell in column and copy unique records to another location on the same worksheet

  1. #1
    Registered User
    Join Date
    09-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    20

    Find last cell in column and copy unique records to another location on the same worksheet

    I have used Record macro to create a macro to list the unique records in column C:C into G1

    Please Login or Register  to view this content.
    I would like to replace hard coded "Range("C1:C544")" with code that will look for the last cell in the column and then use that.

    I've tried using;
    Please Login or Register  to view this content.
    This finds the last cell with data, but I am unable to make it work in the GetUnitNames() routine.

    Any help appreciated

    cheers
    Last edited by ExcelRonin; 03-16-2016 at 05:30 PM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,644

    Re: Find last cell in column and copy unique records to another location on the same works

    embed second code into first, and you will end with
    Please Login or Register  to view this content.
    or shorter:
    Please Login or Register  to view this content.
    Btw - you use one but last cell is there a kind of total or something like it in last row? if not, remowe -1 after .End(xlUp).Row
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    09-04-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Find last cell in column and copy unique records to another location on the same works

    Hi Kaper,
    Thank you. Works as advertised.
    I can see where I went wrong in define the range.
    cheers

+ 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. Ms excel find unique records 2 sheets & copy to another sheet
    By tpracsg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2020, 02:53 AM
  2. [SOLVED] Find unique values between columns and copy to new column
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-31-2015, 09:48 AM
  3. [SOLVED] VBA code Error: find the records that match the criteria in a specified cell and copy
    By meer_ali in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-02-2014, 03:30 AM
  4. Find Unique Records in Multiple Tabs
    By Vgmastr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2012, 01:53 PM
  5. [SOLVED] Find Unique Records from two sheets
    By M.Siler in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2005, 06:06 PM
  6. find cell location of max value in column
    By rroach in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-06-2005, 12:05 PM
  7. [SOLVED] Find Cell and Copy adjacent value to another location
    By JJalomo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2005, 04:06 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