Results 1 to 5 of 5

Userform - Auto-populate text box

Threaded View

  1. #1
    Registered User
    Join Date
    11-16-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    34

    Userform - Auto-populate text box

    Hi There,

    I think what I'm trying to achieve is pretty simple, but I've had no luck so far.

    Basically I have two text boxes. textbox1 allows the user to input a date, textbox2 is supposed to auto-populate a date which adds 6 weeks (42 days) to the date in textbox1. I tried the below code but had no such luck .

    Thanks for any help in advance!

    Private Sub textbox1_Change()
    If textbox1.Value = "" Then Exit Sub
    textbox2.Value = CDbl(textbox1.Value + 42)
    End Sub
    Last edited by revenge4ash89; 01-23-2012 at 09:47 AM.

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