+ Reply to Thread
Results 1 to 3 of 3

Userform, Worksheet, change work code

  1. #1
    Registered User
    Join Date
    01-14-2012
    Location
    Qld, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Userform, Worksheet, change work code

    Hi, I have code that currently work great, It will all data about Order place in the Orders worksheet and Stock placed into the Stock worksheet, and when the Product, Customer and order has been select it places the required data for the order and what stock has been selected into the despatched worksheet. However I am try to modify it so that it will also place the Order No for Customer from listbox1 column 2 and then place it against all the selected stock from listbox2. So it will have to find the stock on the stock worksheet looking at the Product column B and then the Batch no column C and then the pallet no column D and then it find a match place the order No into Column E.

    To use the workbook Open it, the workbook should open the dedpathed worksheet, the workbook has three worksheet one for Orders, Stock and the above mentioned Despatched worksheet (Yes I know I spelt it wrong, in a rush). So go to the despatched page click the button and show the user form, Select from the 1st combobox Product 1 and then from the Second Combobox Customer 10, then from the third the Order No. This will display data from the worksheet into Listbox 1 and Listbox 2. listbox hold data about the order and Listbox2 hold the stock data. Now select one from the listbox1 and 1 or more from Listbox2 and then click on the Add Order Button to enter it.

    I've placed the Code that I using at the moment that That I need to be modified.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Userform, Worksheet, change work code

    Hi,

    See attached
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-14-2012
    Location
    Qld, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Userform, Worksheet, change work code

    Thanks Richard, I didn't think of that as I was looking for a vba option, this works great.

+ 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. [SOLVED] how to change userform code to worksheet code
    By Learning ExL in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-04-2015, 04:25 AM
  2. [SOLVED] Code in userform to be flexible and work with multiple textboxes
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-21-2015, 11:04 AM
  3. Changing listbox code to work in a userform
    By cosmicwinds in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2014, 01:52 PM
  4. VBA userform for choosing colors: change Excel code to work for powerpoint?
    By submariner18 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2013, 05:49 PM
  5. Macro to change UserForm Label does not work?
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-24-2012, 06:39 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