|
-
Dec 8th, 2005, 04:17 PM
#1
Thread Starter
Member
VBA Form Load
Is there a function to load items when a form opens
-
Dec 8th, 2005, 04:20 PM
#2
New Member
Re: VBA Form Load
Such as? Sure there is. What are you trying to do.
-
Dec 8th, 2005, 04:24 PM
#3
Re: VBA Form Load
VB Code:
Private Sub Form_Activate()
End Sub
-
Dec 9th, 2005, 09:03 AM
#4
Re: VBA Form Load
Moved to Office Development.
-
Dec 9th, 2005, 02:41 PM
#5
Re: VBA Form Load
In VBA you need to "_Initialize" event. Example below
VB Code:
Option Explicit
Dim Dreaming As Boolean
Private Sub UserForm_Initialize()
Me.txtName = "Dkenny"
Me.txtSalary = 1000000
If Me.txtSalary > 100 And Me.txtName = "DKenny" Then Dreaming = True
End Sub
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
Dec 29th, 2011, 12:48 AM
#6
New Member
Re: VBA Form Load
You can use form_load event or activate to load items when the form opens e.g
Private sub form_load()
(your items will be identified by the specific command here)
End sub
-
Dec 29th, 2011, 06:49 AM
#7
Frenzied Member
Re: VBA Form Load
i cannot beleive that a forum member since 05 has never seen
form_load
form_activate
form..._whatever
as they appear in the right hand box of the ide's editor
when you select the form in the left box
in all those years...
what have you doing man?
here to talk ( and be flippant it seems )
-
Jan 26th, 2012, 06:00 PM
#8
New Member
Re: VBA Form Load
Delete this thread, it's a joke. Over 12,000 views only for all this garbage
-
Jan 27th, 2012, 12:36 AM
#9
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|