+ Reply to Thread
Results 1 to 4 of 4

SIMPLE comand code VBA

  1. #1
    Registered User
    Join Date
    01-11-2015
    Location
    COSELEY
    MS-Off Ver
    WINDOWS 8
    Posts
    57

    SIMPLE comand code VBA

    Hi Guys

    Basically I have a user form and have on my user form 1 combo box, 1 text box and 1 label.
    The combo box gives a list when its Initialize() of materials (Based on a list in Column A A4:A50 "Materials" worksheet
    The text box will be a empty box that the user will add a number to, example 500
    The label also populates the current date when the user form also Initialize()

    When the command Button is pressed I need this to look up the material selected from the combo box in the A4:A50 list
    Then at the Qty entered in the text box to the current figure in column B I also need the Date from the label in column C

    The date can be over written each time a Qtys is added.

    Can anyone advise.

    Thanks

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: SIMPLE comand code VBA

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    01-11-2015
    Location
    COSELEY
    MS-Off Ver
    WINDOWS 8
    Posts
    57

    Re: SIMPLE comand code VBA

    Hi Bernie

    Thank you so much, works Perfectly
    Using the code if I wanted to subtract the Textbox 1 Qty would I just replace the + in the formula to a -?

    Kind regards

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: SIMPLE comand code VBA

    Yes - if you want to subtract just change the + to a -

+ 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] Need help with indirect comand
    By sergiu_ciuhnenco in forum Excel General
    Replies: 12
    Last Post: 04-02-2015, 11:22 AM
  2. Comand in Makro not working
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 11-16-2011, 06:52 AM
  3. Single Use Comand Button
    By JamesT1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-21-2008, 02:28 AM
  4. comand button and userform
    By oberon.black in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-04-2008, 08:10 PM
  5. Need help in VLOOKUP comand
    By ashishprem in forum Excel General
    Replies: 2
    Last Post: 08-08-2006, 07:30 AM
  6. comand 'IF"
    By ceconik in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-20-2006, 09:13 AM
  7. help on this simple code... or not so simple?
    By bondcrash in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-18-2005, 07:25 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