+ Reply to Thread
Results 1 to 5 of 5

Button/Macro to copy data from one sheet to another (price list data to quote)

  1. #1
    Registered User
    Join Date
    02-03-2020
    Location
    Australia
    MS-Off Ver
    Office 2016
    Posts
    3

    Button/Macro to copy data from one sheet to another (price list data to quote)

    Hi,

    My excel skills are very limited so I was hoping someone could assist.

    I have a spreadsheet containing price list data for a few thousand products i sell. When producing a quote, i copy and past data from selected cells between to two documents/tabs to produce a quote. I was looking to add a button/macro to each row of data, so that if i want to add that item to the quote i could click the button and it would automatically populate the second spreadsheet (quote) with the data in the correct columns automatically. It would also need to do this in a new row each time as to not overlap data on the same row.

    Is this achievable?

    Spreadsheet attached (prices changed due to privacy).
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Button/Macro to copy data from one sheet to another (price list data to quote)

    With the code below; when you double-click on an item in column A or B on the parts sheet, it will add it to the next empty row on the quote sheet and select the quote sheet quantity cell for your input.

    To install the code:
    • Right-click on the 2020 $AU sheet tab.
    • Select View Code from the pop-up context menu.
    • Paste the code from below in the worksheet's code module.

    Please Login or Register  to view this content.
    Note: don't put anything in column A at the bottom of the quote sheet. If you do, the code will have to be modified.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    02-03-2020
    Location
    Australia
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Button/Macro to copy data from one sheet to another (price list data to quote)

    Thank you for this,

    You have saved me hours of work.

    I have added another column (J2:J1433) with images (jpg) of each item. Is there anyway to get this to copy over into a picture column on the quote (H)? I'm struggling with this as the image is not technically data in the cell, more of an image floating over the cell.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Button/Macro to copy data from one sheet to another (price list data to quote)

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-03-2020
    Location
    Australia
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Button/Macro to copy data from one sheet to another (price list data to quote)

    Champion. Thanks Mate!!

+ 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. Quote from a Price List using macro
    By Arnokrusty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2019, 04:32 AM
  2. Macro Button to copy last row of data, transposed, skipping a row to another sheet
    By travreed7 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-11-2015, 01:59 AM
  3. Macro button to copy data from one sheet to another sheet's next available column
    By Alice21 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-23-2013, 08:02 AM
  4. Need help with List Price Quote with different possibilities
    By MarciaPO in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-25-2012, 11:26 AM
  5. Question abuot creating a price quote from a long price list
    By glennchung in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-02-2009, 03:49 PM
  6. Update a quote from a price data sheet
    By syntex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2008, 08:38 PM
  7. copy yellow cells on sheet 'quote to sheet1 via a command button
    By lokechoiwun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2006, 08:32 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