Results 1 to 5 of 5

Copy List to Next Empty Row

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-26-2008
    Posts
    124

    Copy List to Next Empty Row

    I recorded the following Macro to copy Data to a Database Sheet, but cannot get it to find the next empty row. When I run the macro it will paste to whatever row the cursor is in. I would like to have the data copied to the next empty row starting with column "A2". Also (this may need another thread) I would like a formula in Column A to automatically record a new number with each new entry, starting with say 0001.

    Thanks,

    Jim O


    Sub AddToDataBase()
    '
    ' AddToDataBase Macro
    ' Macro recorded 7/14/2009 by Jim Ogier
    '
    
    '
        Range("AK2:AK21").Select
        Selection.Copy
        Sheets("Customer Data Base").Select
        
      'Find next empty row
        n = Sheets("Customer Data Base").Range("A65536").End(xlUp).Row + 1
        Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
        
    End Sub
    Last edited by JOGIER; 07-15-2009 at 03:31 PM.

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