+ Reply to Thread
Results 1 to 6 of 6

Using A Specified Date to Select a Cell and enter a value from a text box in vba

  1. #1
    Registered User
    Join Date
    01-24-2013
    Location
    Murray Lynn
    MS-Off Ver
    Excel 2007
    Posts
    4

    Using A Specified Date to Select a Cell and enter a value from a text box in vba

    Hi,

    I am new to this forum and have only recently returned to utilizing VBA to create Excel Applications.

    I am having a challenge getting a user form to work.

    I have a spreadsheet that is organized with dates across the top.

    Below that there are cells to make data entries and then other cells to make calculations.

    I have created a form that has a Date Value Seclector and a text box.

    I need code that will input the value in the text box into the cell that is directly below the date that has been selected in the date selector.

    Please help, this seems like it should be simple, but I can't seem to figure it out.
    Last edited by MDLV1; 01-24-2013 at 08:14 PM.

  2. #2
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Berkeley, CA
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Using A Specified Date to Select a Cell and enter a value from a text box in vba

    Would you attach your workbook?
    ------------------------
    W2

  3. #3
    Registered User
    Join Date
    01-24-2013
    Location
    Murray Lynn
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using A Specified Date to Select a Cell and enter a value from a text box in vba

    I have attached a simple example that calls a form.

    The form is set up with a date selector object and a text box.

    All I want to be able to do is select a date, enter a value in the text box, click execute and have the value show up in the corresponding cell.

    The cells that the values are meant to populate are highlighted in grey.

    All I want to be able to do at this time is enter 1 value in 1 cell.

    Thanks for your help.

    VBA Sample 1_Locating a Cell.xlsm

  4. #4
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Berkeley, CA
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Using A Specified Date to Select a Cell and enter a value from a text box in vba

    Take a look at the attached workbook and see if it does what you need.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-24-2013
    Location
    Murray Lynn
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using A Specified Date to Select a Cell and enter a value from a text box in vba

    Yes that works!

    Thank you for your help.

  6. #6
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Berkeley, CA
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Using A Specified Date to Select a Cell and enter a value from a text box in vba

    You're welcome. If you need to access different cells, the range in the code can be adjusted accordingly.

    Good Luck!

+ 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