+ Reply to Thread
Results 1 to 14 of 14

need help vlookup text box and date picker

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    need help vlookup text box and date picker

    Dear all
    i would like to make some edit in the userform in my attached file
    fist in add stock quantity will show userform
    1- i want to change the production date from text box to pick up like production date1 (remove production date and make this production date1 instead.
    2- add clear bottom like add this part and close form
    3- when i press add this part bottom it give me message this reviw data i enter if correct or not (confirmation message )
    4- in media type field when i select any one want to show all meaning not show setting only or RODAC but want settling TSA or sda
    or Rodac TSA or other selection


    second
    when i press withdraw quantity will show userform
    1-when i select media type field , batch number , automatic show available quantity
    field then when i try to insert in withdraw quantity more than available not accept
    and show message the quantity more than available


    available quantity will get it from Stockdatabase in column F( that corresponding to each type and batch number
    Attached Files Attached Files
    Last edited by mazan2010; 12-26-2016 at 02:29 AM.

  2. #2
    Forum Contributor sorensjp's Avatar
    Join Date
    12-23-2015
    Location
    Yokosuka, JP
    MS-Off Ver
    2007 and 2016
    Posts
    196

    Re: edit userform from date in text box to date picker & text box pick the coressponding d

    Mazan2010,

    I've been using templates from Trevor Easton. He has created a large number of templates I use at work. The link below is to a project you might want to use.
    He recommends you build the project first then change it to suit your need. I absolutely agree as I have failed on taking that advice a couple times. He has many more projects for inventory management available.


    http://www.onlinepclearning.com/vba-...013-userforms/

    Hope it helps,
    Jim

  3. #3
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: need help vlookup text box and date picker

    Dear sorensjp
    thanks for your help but i want to know how can vlook for value related to two textbox

  4. #4
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: need help vlookup text box and date picker

    can any expert help me to make this in my file i try to solve date picker but still give me error
    see my attached file
    Attached Files Attached Files
    Last edited by mazan2010; 12-28-2016 at 10:59 AM.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,913

    Re: need help vlookup text box and date picker

    Got your PM but have to go now, will try to have a look at it later today if no one jumps in at that point.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  6. #6
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: need help vlookup text box and date picker

    Dear Makerman thanks for you reply
    waiting answer
    best regards

  7. #7
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: need help vlookup text box and date picker

    Hi,
    Not sure how excatly you want to add date from DTpicker. Change code for DTpicker to this one and picked date will appear in firs empty cell.
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: need help vlookup text box and date picker

    i try but its not working
    can try in my attached file

  9. #9
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: need help vlookup text box and date picker

    Try attached file with amended DTpicker code.
    Changed code is under Stock userform. Open it, choose date from Production Date1 and it will appear on a sheet "StockDatabase"
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: need help vlookup text box and date picker

    i would like to correct this code for date picker because when i add = DTPicker1.CustomFormat = "dd MMM yyyy hh:mm" to code its make value FALSE in sheet
    also in i need this date picker the default day is today and after submit my data will return direct to current day
    Please Login or Register  to view this content.

  11. #11
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: need help vlookup text box and date picker

    This line
    Please Login or Register  to view this content.
    should be like
    Please Login or Register  to view this content.
    To set default day add this line in the Private Sub UserForm_Initialize()
    Please Login or Register  to view this content.
    If you want to reset date after some button is pressed - add same line in buttons code.

  12. #12
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: need help vlookup text box and date picker

    Dear Kasan
    Kindly find attached file in withdraw sheet , it give me date with time but give me time 00:00
    also what about make current day as default how can i make it with my current code and make reset after submit data
    Attached Files Attached Files

  13. #13
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: need help vlookup text box and date picker

    Hey, but what time do you expect to appear? Current time? What if I choose some future/past date, how do I know time?
    Seems you already included code to reset date. I've tested Withdraw userform.

  14. #14
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: need help vlookup text box and date picker

    regarding to time , you are correct for future/past date cases , but its applicable can allow to enter time by picker methods also?
    regarding to reset date. I've tested Withdraw userform. , its reset to 1-1-2017
    i need every time reset to current date

+ 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. Date picker used to populate text box. Date changes back to original value on opening.
    By Stratfordoaks in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2016, 09:42 AM
  2. Interactive userform with date picker as control source to pull data
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2015, 05:40 PM
  3. [SOLVED] Add date to table using date picker in a userform
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-28-2015, 09:25 PM
  4. [SOLVED] Date Time Picker Change to Text
    By juriemagic in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-23-2014, 08:49 AM
  5. vetting of my code, and edit date picker on my form
    By omolemo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2013, 10:02 AM
  6. Date Picker won't select current date: Userform
    By valkok in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2011, 06:09 PM
  7. [SOLVED] Format text box and move across date time picker
    By Basil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2005, 05:05 PM

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