+ Reply to Thread
Results 1 to 5 of 5

VBA command to copy the last cell

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    56

    VBA command to copy the last cell

    Hi,

    I need a VBA command to copy the cells to the end of the row.

    For example from the attached excel sheet, my data ends in cell C52 & I need the data to be copied from A51 & B51 till the end of the row using fill down.

    I have attached my requirements in sheet "Results".
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: VBA command to copy the last cell

    Perhaps you mean:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-23-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: VBA command to copy the last cell

    Hi,

    If I use your VBA to my part of macro completed, it's not picking the data.

    I have attached the same data which I had provided earlier, with my macro for background results.

    I have also attached an excel sheet with the Input data.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-23-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: VBA command to copy the last cell

    Hello,

    Can someone help me out for the query ?

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: VBA command to copy the last cell

    The code snippet you were given does what you ask (even on your sample when run separately).

    I confess I've not the time to go through the rest of your code...

+ 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