![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 32
|
Cell B10 could say:
Tank 1a after discharge Tank 1a after circulation Tank 1a Sample and Analysis but it always starts off as Tank xx I have a macro right now that saves the files to various directories based on that information. I would like to make it save another file based on what tank is listed in that cell. How can I get that info from that cell? Thanks! Zac |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Greenwood, SC
Posts: 677
|
Assuming the first 7 characters are always Tank xx, you can use the Left function:
Left("A1",7) K |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 32
|
Our tank numbers vary from 1 character to 5 usually...
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|