+ Reply to Thread
Results 1 to 2 of 2

please help with fill or paste to "Last Row"

Hybrid View

  1. #1
    Registered User
    Join Date
    11-02-2011
    Location
    BC, Canada
    MS-Off Ver
    Excel 2016
    Posts
    22

    please help with fill or paste to "Last Row"

    Nevermind, figured it out!

    Hi all, i have been reading posts and threads on this topic all morning and form some reason, can't seem to get any of the already posted solutions to work. Likely this is because i have only a very limited understanding of VBA and its syntax, so when i try something i'm neglection to include a piece of code or something that everyone else would automatically know to include. Anyway, here's what i'm trying to do...

    Insert column (now Col A), apply formula =concatenate(B2,C2,D2,) in A2 and fill down to the last row. Column B has data all the way down so i've been trying to use variations of...

    Range("B2").Select
        Selection.End(xlDown).Select
        Range("A256").Select
        Range(Selection, Selection.End(xlUp)).Select
        ActiveSheet.Paste
    Obviously line 3 'Range("A256").Select' is not what i want, this is where i want it to move over from col B to Col A so that i can past up regardless of how many rows are in the table tomorrow or the next day... This piece of code is in the middle of a larger macro, and i'm basically building this using the recorder and a couple of books i have, but i really have no understanding of syntax... I realize this question has been asked a lot, i don't know why i cant get some of the other solutions people have posted to work.

    as always, any help is much appreciated!
    joe
    Last edited by arlu1201; 04-16-2013 at 01:45 AM. Reason: Use code tags in future.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: please help with fill or paste to "Last Row"

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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