+ Reply to Thread
Results 1 to 6 of 6

Recording purchase order form to Data

  1. #1
    Registered User
    Join Date
    01-11-2020
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    4

    Recording purchase order form to Data

    Hi,
    i am still quite new with VBA coding much help will be appreciate.
    I have created a purchase order form where the "Product Selection" button allow users to select their toys for purchases. Now, i need another function which is created as well named "Comfirm order". Upon clicking this function, i want all the information from cell B4:D9 to be transferred to "Sales Data" sheet.
    Thank you.
    Attached Files Attached Files
    Last edited by Roy Lee; 01-13-2020 at 09:47 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Recording purchase order form to Data

    Hello Roy Lee,

    This worked for me.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    01-11-2020
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    4

    Re: Recording purchase order form to Data

    Hello Leith Ross,
    Your code works fine, thank you for help. However is it possible to loop this part:
    For r = 1 To 5
    DstRng.Cells(r, 3).Value = SrcRng.Cells(r, 1).Value
    DstRng.Cells(r, 2).Value = SrcRng.Cells(r, 2).Value
    DstRng.Cells(r, 1).Value = SrcRng.Cells(r, 3).Value
    Next r
    As I want my "Sales Data" Worksheet to be a database where it record all the input of multiple Purchase Form instead of the current one.
    Thanks alot!

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Recording purchase order form to Data

    Hello Roy Lee,

    Here is the updated macro code...
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-11-2020
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    4

    Re: Recording purchase order form to Data

    Thanks Leith Ross,
    Your code works perfectly!! Thanks alot!

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Recording purchase order form to Data

    Hello Roy Lee,

    You're welcome.

+ 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. Purchase Order Form needs incrementing numbers for three separate departments
    By Narchynna in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2016, 08:18 PM
  2. [SOLVED] Populate my Purchase order from a list of Purchase Order numbers and their details
    By Carolbell44 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2015, 07:14 AM
  3. Replies: 8
    Last Post: 04-06-2015, 11:44 AM
  4. Macro Reqd to update Purchase order log, everytime a new purchase order is made
    By manthankanabar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-23-2012, 01:47 AM
  5. Replies: 2
    Last Post: 10-11-2011, 08:03 AM
  6. Creating a Purchase Order Form
    By Fordy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2006, 01:50 PM
  7. [SOLVED] purchase order counter in excel purchase order template
    By Brandy@baoco in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-23-2005, 03:06 PM

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