Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default save as from combo box list

I am trying to write a macro that saves the file to a network folder whos
filename is based on what is selected in 2 combo boxes and a 3rd cell which
has the date. Example:

Combo Box 1 = Unit Process:
Please Select
Sub Assy Repair
Sub Assy Test
Assembly
Final Test
Quality Assurance

Combo Box 2 = Station:
Please Select
Sub Assy Repair
Sub Assy Test
Assembly
Final Test
Quality Assurance

Date:
Cell C15

Is there a shorter way to do this then using If Then statements?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default save as from combo box list

Hi Shinka

You can build a string like this and use that in the save line

Dim str As String
With Sheets("Sheet1")
str = .ComboBox1.Value & .ComboBox2.Value & .Range("C15")
End With
MsgBox str


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
I am trying to write a macro that saves the file to a network folder whos
filename is based on what is selected in 2 combo boxes and a 3rd cell which
has the date. Example:

Combo Box 1 = Unit Process:
Please Select
Sub Assy Repair
Sub Assy Test
Assembly
Final Test
Quality Assurance

Combo Box 2 = Station:
Please Select
Sub Assy Repair
Sub Assy Test
Assembly
Final Test
Quality Assurance

Date:
Cell C15

Is there a shorter way to do this then using If Then statements?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default save as from combo box list

Thanks Ron. I'm also using parts of your e-mail macros.
You've been a great help, thanks.

"Ron de Bruin" wrote:

Hi Shinka

You can build a string like this and use that in the save line

Dim str As String
With Sheets("Sheet1")
str = .ComboBox1.Value & .ComboBox2.Value & .Range("C15")
End With
MsgBox str


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
I am trying to write a macro that saves the file to a network folder whos
filename is based on what is selected in 2 combo boxes and a 3rd cell which
has the date. Example:

Combo Box 1 = Unit Process:
Please Select
Sub Assy Repair
Sub Assy Test
Assembly
Final Test
Quality Assurance

Combo Box 2 = Station:
Please Select
Sub Assy Repair
Sub Assy Test
Assembly
Final Test
Quality Assurance

Date:
Cell C15

Is there a shorter way to do this then using If Then statements?

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default save as from combo box list

You are welcome

Thanks for the feedback

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
Thanks Ron. I'm also using parts of your e-mail macros.
You've been a great help, thanks.

"Ron de Bruin" wrote:

Hi Shinka

You can build a string like this and use that in the save line

Dim str As String
With Sheets("Sheet1")
str = .ComboBox1.Value & .ComboBox2.Value & .Range("C15")
End With
MsgBox str


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shinka" wrote in message ...
I am trying to write a macro that saves the file to a network folder whos
filename is based on what is selected in 2 combo boxes and a 3rd cell which
has the date. Example:

Combo Box 1 = Unit Process:
Please Select
Sub Assy Repair
Sub Assy Test
Assembly
Final Test
Quality Assurance

Combo Box 2 = Station:
Please Select
Sub Assy Repair
Sub Assy Test
Assembly
Final Test
Quality Assurance

Date:
Cell C15

Is there a shorter way to do this then using If Then statements?

Thanks






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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo Box ListFillRange causing save prompt [email protected] Excel Programming 5 July 6th 05 09:51 PM
combo box or list dov Excel Programming 1 January 24th 05 12:03 PM
combo box will not save text typed john q public[_4_] Excel Programming 0 October 27th 04 09:15 PM
combo box will not save text typed john q public[_3_] Excel Programming 0 October 27th 04 08:57 PM
combo box will not save text typed john q public Excel Programming 2 October 27th 04 08:33 PM


All times are GMT +1. The time now is 11:25 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"