Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Steve
 
Posts: n/a
Default save to folder based on cell value

I have a contract that has a macro that will save to a particular location.
Is it possible to make the save location dependant on the first letter of
the save name.
Example: Save name "Smith, John" Since the first letter is S, I would like
it to save to a folder named "Q-S".
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
kassie
 
Posts: n/a
Default save to folder based on cell value

Add a case statement to your macro, with an argument that checks the first
letter of the save name variable, and then sets your folder variable to the
appropriate folder

"Steve" wrote:

I have a contract that has a macro that will save to a particular location.
Is it possible to make the save location dependant on the first letter of
the save name.
Example: Save name "Smith, John" Since the first letter is S, I would like
it to save to a folder named "Q-S".
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
Cell Limitations ? Formatting and Size when exporting to Tab based Text file? PaulH_1980 Excel Worksheet Functions 1 March 15th 06 11:51 PM
Need code to save file to new folder, erase from old folder Ron M. Excel Discussion (Misc queries) 1 February 24th 06 06:02 PM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Linking a cell to another workbook cell based on a variable name Brian Excel Discussion (Misc queries) 6 June 1st 05 11:54 PM


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