+ Reply to Thread
Results 1 to 2 of 2

Macro Help:selected line

  1. #1
    Registered User
    Join Date
    04-21-2006
    Posts
    1

    Exclamation Macro Help:selected line

    Ok, I am having trouble with this macro.
    What I need it to do is:
    1) Cut the currently selected line from sheet 1 (got that)
    2) Paste that line in sheet to, in the NEXT available BLANK row. (Have NO clue how to code that)

    HELP!!!

    Thank you!!

  2. #2
    Jim Thomlinson
    Guest

    re: Macro Help:selected line

    Sub CopyLine()
    Dim rngTo As Range

    Set rngTo = Sheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)
    Selection.EntireRow.Copy rngTo
    End Sub
    --
    HTH...

    Jim Thomlinson


    "Schnauzin254" wrote:

    >
    > Ok, I am having trouble with this macro.
    > What I need it to do is:
    > 1) Cut the currently selected line from sheet 1 (got that)
    > 2) Paste that line in sheet to, in the NEXT available BLANK row. (Have
    > NO clue how to code that)
    >
    > HELP!!!
    >
    > Thank you!!
    >
    >
    > --
    > Schnauzin254
    > ------------------------------------------------------------------------
    > Schnauzin254's Profile: http://www.excelforum.com/member.php...o&userid=33732
    > View this thread: http://www.excelforum.com/showthread...hreadid=535097
    >
    >


+ 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