+ Reply to Thread
Results 1 to 2 of 2

Macro to paste into next free cell

Hybrid View

  1. #1
    Registered User
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    27

    Macro to paste into next free cell

    Hi guys,

    At the minute i've made an order form, which when a button is pressed a macro copys certains cells and pastes them into a different sheet in Column A to populate the order form.

    Problem is if people click multiple orders - it copies over the previous order, is there anyway to make excel recognise there is data in the first few cells and paste into the next free cell in column c?

    Thanks!

    Sam

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Macro to paste into next free cell

    you want to copy to the first empty cell (from the bottom) in column A which is done like this:
    Sheets("Sheet2").Cells(Rows.Count,1).End(XlUp).Offset(1,0).PasteSpecial
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. macro to select free cell at end of row and run another macro.
    By wynn1964 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2014, 01:05 PM
  2. [SOLVED] Paste in first free column
    By 2001jesper in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-05-2013, 06:10 PM
  3. paste the value in the next free cell
    By zykon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 11:53 AM
  4. Multiple Subs in one Macro using the next free cell
    By Whsperz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2010, 04:14 PM
  5. paste to next free colum on new Worksheet
    By Ralph in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2006, 07:35 AM

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