Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Combboxes and Testboxes

I have a form with 2 ComboBoxes which add together to form
both parts of a file URL.

eg. CB1 CB2
My Documents Spreadsheet1
Spreadsheet2


When the desired parts are highlighted a CommandButton is
pressed leading to another form. This second form has a
textbox and I would like it to state the file's address.

eg My documents\Spreadsheet1

Another CommandButton is pressed which then activates the
desired file.

Is this possible? Can anyone help me?

Thanks in Advance

James
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Combboxes and Testboxes

Public Sub CommandButton3_Click
sStr = CB1.Value & CB2.Value
userform2.Textbox1 = sStr
Me.hide
userform2.Show
Unload me
End Sub

in Userform2

Public Sub CommandButton1_Click
Workbooks.Open Textbox1.Text
Unload me
End Sub


--
Regards,
Tom Ogilvy


"James" wrote in message
...
I have a form with 2 ComboBoxes which add together to form
both parts of a file URL.

eg. CB1 CB2
My Documents Spreadsheet1
Spreadsheet2


When the desired parts are highlighted a CommandButton is
pressed leading to another form. This second form has a
textbox and I would like it to state the file's address.

eg My documents\Spreadsheet1

Another CommandButton is pressed which then activates the
desired file.

Is this possible? Can anyone help me?

Thanks in Advance

James



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"