+ Reply to Thread
Results 1 to 4 of 4

Simple copy/paste macro

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    14

    Simple copy/paste macro

    I am trying to copy a selection and paste it into the rightmost empty column.

    I am not sure how to do this without specifying a row/column number.

    Currently I have

    Selection.Resize(3).Copy

    Where do I go from here?

    I will probably have to make use of- .end(xlToLeft).column+1

    Thank you

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    2013 on Win10 (desktop), 2007 on Win10 (notebook)
    Posts
    8,019

    Re: Simple copy/paste macro

    Hi, Katsdog,

    rely on the row of the first cell of the Selection like
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    3,539

    Re: Simple copy/paste macro

    Or if you don't know which column is the last used column:


    Please Login or Register  to view this content.
    This pastes into row 1 (one), one row to the right of the last used column.

  4. #4
    Registered User
    Join Date
    02-27-2013
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Simple copy/paste macro

    Thank you!

+ 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