+ Reply to Thread
Results 1 to 5 of 5

select occupied cells in range

  1. #1
    Registered User
    Join Date
    06-25-2007
    Posts
    35

    select occupied cells in range

    I have a sheet which has 500 rows. I need to create code whereas it finds the last entry in column "C" and then copies all cells before to cell "A5" so as to paste to a new workbook.
    I've been playing with "final row=range( ....rows. count). end(xxx)" type stuff without any joy.

    Thanks!!!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Cheelie,

    This example copies A5:Cn (were n is tha last used row in "C") of the Active Sheet to "Book2" Sheet1 "A1".
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    06-25-2007
    Posts
    35

    Not pasting to destination workbook

    I've quickly added code to see if it works I've not gor any errors but the data is not being pasted to other workbook. Probably a simple mistake I'm making!!

    Thanks!!




    Please Login or Register  to view this content.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Cheelie,

    There is a typo in this line...
    Please Login or Register  to view this content.
    Should be...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    06-25-2007
    Posts
    35

    Yeah found it!!

    I emphasise the fact that I quickly added the code!!

    Thanks!!

+ 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