+ Reply to Thread
Results 1 to 3 of 3

Automatically selecting the next empty row

  1. #1
    Registered User
    Join Date
    02-01-2006
    Posts
    44

    Automatically selecting the next empty row

    Hi,

    I want to tell my macro to paste data gathered earlier in its process into the first available empty row on a worksheet.....

    Any help appreciated

    Alec.

  2. #2
    Dave Peterson
    Guest

    Re: Automatically selecting the next empty row

    Can you pick out a column that always has data?

    I used column A in this example:

    dim DestCell as range
    with worksheets("sheet99")
    set destcell = .cells(.rows.count,"A").end(xlup).offset(1,0)
    end with

    somerange.copy _
    destination:=destcell



    Alec H wrote:
    >
    > Hi,
    >
    > I want to tell my macro to paste data gathered earlier in its process
    > into the first available empty row on a worksheet.....
    >
    > Any help appreciated
    >
    > Alec.
    >
    > --
    > Alec H
    > ------------------------------------------------------------------------
    > Alec H's Profile: http://www.excelforum.com/member.php...o&userid=31042
    > View this thread: http://www.excelforum.com/showthread...hreadid=515357


    --

    Dave Peterson

  3. #3
    Registered User
    Join Date
    02-01-2006
    Posts
    44
    Can you pick out a column that always has data?

    I used column A in this example:

    dim DestCell as range
    with worksheets("sheet99")
    set destcell = .cells(.rows.count,"A").end(xlup).offset(1,0)
    end with

    somerange.copy _
    destination:=destcell





    Dave Peterson




    Sorted, Thanks Dave

+ 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