+ Reply to Thread
Results 1 to 2 of 2

command button to copy cells from one worksheet and insert to another

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    clarence center, ny
    MS-Off Ver
    excel 2010
    Posts
    9

    command button to copy cells from one worksheet and insert to another

    hello,

    I'm very new to macros and need help creating a macro with a command button that will copy info from cells on a worksheet template and insert them into another worksheet transposed on. this form would be used on an on going basis so it would also have to save the current info and insert a new row every time the button was clicked. Any help would be greatly appreciated. I have included the file for reference
    thanks
    eric
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: command button to copy cells from one worksheet and insert to another

    Basically you'd use the row # in the template sheet as the column # in the Contact List. You'd have a do loop that reads down the template sheet (to the last data field) and as you go you'd "write" the data to the Contact List.
    However to make this work easier (with the code below) you should change your template as follows:
    1) just have one column to contain the data
    2) Don't span the multi-row data. Just increase the size of the row. Otherwise you have to adjust for all of the rows and will make if very complicated.


    Please Login or Register  to view this content.
    If this is helps please click on the Add Reputation link.

+ 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. how to make command button insert picture in range of cells
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2013, 01:51 AM
  2. Command button to insert data onto worksheet
    By jlwiii34 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2013, 02:19 PM
  3. Replies: 2
    Last Post: 06-11-2012, 05:14 PM
  4. Copy worksheet template using command button
    By earl54dink in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2008, 12:12 AM
  5. copy a command button to new worksheet
    By elaine in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2006, 11:40 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