+ Reply to Thread
Results 1 to 3 of 3

VBA Code - Excel - NEW USER

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    London
    MS-Off Ver
    OFFICE 2007
    Posts
    1

    VBA Code - Excel - NEW USER

    I am a complete new user to VBA and Macros.

    I am wanting to create a macro for copying a cell and pasting it to a new excel file. The process will continue. The difficulty I am having is when pasting a second, third etc time, it will paste on top of the original and not on new line.

    So, every time I copy and it will paste onto a new line.

    Thank you

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: VBA Code - Excel - NEW USER

    You would need to identify that last used line, then reference that line and offset by 1. Example:

    Please Login or Register  to view this content.
    You can include a workbook reference if this is across different workbooks.

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: VBA Code - Excel - NEW USER

    Hi, michaelhilland,

    you should alter the title of this thread to one that reflects the problem (no, not your problem ) according to Forum Rule #1.

    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

+ 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. VBA Code - Excel - NEW USER
    By michaelhilland in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-30-2014, 09:16 AM
  2. [SOLVED] User form in excel- need help in writing code with if/then statement
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2013, 08:04 AM
  3. VBA Code Excel restrict user emailing a workbook
    By Ronsco in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2011, 05:03 AM
  4. [SOLVED] What code do I use to add a user form to Excel worksheet?
    By Hammer1947 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2006, 01:35 PM
  5. Replies: 1
    Last Post: 01-29-2005, 10:06 AM

Tags for this Thread

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