Results 1 to 10 of 10

Userform - help with initialize

Threaded View

  1. #1
    Registered User
    Join Date
    01-19-2009
    Location
    Stockholm
    MS-Off Ver
    Excel 2003
    Posts
    29

    Userform - help with initialize

    Hi,

    I have trouble with userform, my textbox is not filled out unless I click on it. I want it to automatically be filled when I initialize it.

    Private Sub TxtBox_Change()
    
    Dim Wks As Worksheet
    Set Wks = Worksheets("Activity")
    Nummer = Wks.Range("AB121").Value
    TxtBox.Text = WorksheetFunction.CountIf(Wks.Range("F1:F1000"), Nummer)
    End Sub
    
    Private Sub UserForm1_Initialize()
    TxtBox
    End Sub
    Last edited by Macster; 01-23-2009 at 05:38 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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