+ Reply to Thread
Results 1 to 7 of 7

Macro to Pull Info from Product Line Sheet to Purchase Order Sheet

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Macro to Pull Info from Product Line Sheet to Purchase Order Sheet

    Good morning,

    I am looking for a macro. When I add a quantity in the "To Order" column of the Product Line Sheet (range A5:H40), I want it to pull all required information into the Purchase Order Sheet (range A15:F46). I do not want the macro to interfere with the "Total Cost" formula (F48) at the bottom of the Purchase Order worksheet.

    It will make a lot more sense if you view the attached file. it's a pretty basic worksheet. Please either give me a fish or teach me how to fish, whichever works best for you! Thanks!

    Purchase Order Template.xlsx

  2. #2
    Registered User
    Join Date
    09-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Macro to Pull Info from Product Line Sheet to Purchase Order Sheet

    Also, "Our Cost" in the Product Line worksheet equals "Unit Cost" in the Purchase Order worksheet.

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Macro to Pull Info from Product Line Sheet to Purchase Order Sheet

    Also, I am using Excel 2010... Not sure why it says Excel 2003

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Macro to Pull Info from Product Line Sheet to Purchase Order Sheet

    HI JeffreyJr,

    Find the attached with VBA code that does a lot of what you need. It isn't perferfect but will give you a start in your learning VBA.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Macro to Pull Info from Product Line Sheet to Purchase Order Sheet

    Thanks MarvinP, it works great! I appreciate it!

  6. #6
    Registered User
    Join Date
    09-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Macro to Pull Info from Product Line Sheet to Purchase Order Sheet

    I have three different worksheets I need to apply the same VBA in to. I copied/pasted values and everything seemed to work properly, but then it wouldnt let me save the file. Does it need to be set up individually?

    Quote Originally Posted by MarvinP View Post
    HI JeffreyJr,

    Find the attached with VBA code that does a lot of what you need. It isn't perferfect but will give you a start in your learning VBA.

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Macro to Pull Info from Product Line Sheet to Purchase Order Sheet

    Read the code and look at each line and see what that line does.

    You said you wanted to learn to fish not just start eating it.

+ Reply to Thread

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