View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default User Forms - passing data between them

hide the first form. the second form can then access the data

in userform1

Private Sub CommandButton1_Click()
me.hide
userform2.show
End Sub


in userform2

Private Sub CommandButton1_Click()
if Userform1.Combobox1.Value = "House" then
' do something
elseif Userform1.Combobox1.Value = "Dog" then
' do something else
end if
End Sub

as an example.

--
Regards,
Tom Ogilvy

"mickiedevries " wrote in
message ...
I am trying to use user forms to build a program in excel. I would like
it to use all user forms. When a certain item on one form is selected
it calls another form. My problem is that I need to pass information
between the forms so I can total prices that are selected on the
multiple forms, I'm not sure how to pass this data between the forms.

Thank You for any suggestions.

Mickie


---
Message posted from http://www.ExcelForum.com/