+ Reply to Thread
Results 1 to 2 of 2

Using input from userforms - Help!

Hybrid View

marsupilami Using input from userforms -... 03-11-2005, 10:40 AM
marsupilami Stupid me! Just needed to... 03-14-2005, 09:50 AM
  1. #1
    Registered User
    Join Date
    11-15-2003
    Location
    Oslo, Norway
    MS-Off Ver
    2010
    Posts
    11

    Using input from userforms - Help!

    Hi!

    I've got a userformthat prompts the user for two dates, and a signature;

    Private Sub cmdok_Click()
    Dim signature As String
    Dim fromdate As String
    Dim todate As String

    fromdate = txtdatefrom.Value
    todate = txtdateto.Value
    signature = txtsign.Value

    macro1

    userinput.Hide
    End Sub

    However, when "macro1" is executed, no values appear where "fromdate", "todate" and "signature is used. Why?

    As you might guess this is my first time using a userform

    Help appreciated!

    -M-

  2. #2
    Registered User
    Join Date
    11-15-2003
    Location
    Oslo, Norway
    MS-Off Ver
    2010
    Posts
    11
    Stupid me!

    Just needed to declare Global variables...

    Guess I should have paid more attention during the VBA course
    5 years ago...

+ 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