+ Reply to Thread
Results 1 to 1 of 1

really stuck with auto updating a textbox on opening a workbook

Hybrid View

  1. #1
    Registered User
    Join Date
    03-31-2011
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    1

    really stuck with auto updating a textbox on opening a workbook

    Hi guys,


    I'm really stuck with this one
    I have a dtpicker with the code below that sets it to display the current date without the user having to choose anything, this date is then displayed in a textbox just to verify the correct date. I can get the textbox to change and update correctly when they pick a new date but when opening the workbook the old date is displayed and the new date is hidden underneath. Does anyone know a quick fix for this?

    Private Sub WorkBook_Open()
    
    Dim objOLE As Object
    For Each objOLE In Sheets("Theatres Checklist").OLEObjects
    If TypeName(objOLE.Object) = "DTPicker" Then
    objOLE.Object.Value = Date
    End If
    Next objOLE
    
    End Sub
    Thanks
    Last edited by pike; 04-02-2011 at 04:30 AM. Reason: add code tags for newbie PM rule

+ 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