Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Remove Spaces
In a routine i have tmpName that is a temporary workbook name that is used
in the routine to open other workbooks. I need to remove spaces in the tmpName. Ex. -WorkBook Name = Test One Two.xls - I need the tmpName to be "TestOneTwo.xls. How do I remove the spaces? Any help is truly appreciated. Regards, Ronbo |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Remove Spaces
Google for excel Selection.Replace does this help?
hth Pete |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Remove Spaces
Use the Replace function:
tmpName = Replace(Application.ActiveWorkbook.Name," ","",1) -Glenn Ray "Ronbo" wrote: In a routine i have tmpName that is a temporary workbook name that is used in the routine to open other workbooks. I need to remove spaces in the tmpName. Ex. -WorkBook Name = Test One Two.xls - I need the tmpName to be "TestOneTwo.xls. How do I remove the spaces? Any help is truly appreciated. Regards, Ronbo |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Remove Spaces
Thanks, it works but I have more to the code and have not been able to get it
to work for me. I have to quit now and will not be back at the problem until tomorrow night or or in the next day or two. Does anyone know, should I reply to this old thead (and if so will anyone see it?) or should I start a new question? "Glenn Ray" wrote: Use the Replace function: tmpName = Replace(Application.ActiveWorkbook.Name," ","",1) -Glenn Ray "Ronbo" wrote: In a routine i have tmpName that is a temporary workbook name that is used in the routine to open other workbooks. I need to remove spaces in the tmpName. Ex. -WorkBook Name = Test One Two.xls - I need the tmpName to be "TestOneTwo.xls. How do I remove the spaces? Any help is truly appreciated. Regards, Ronbo |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can i remove spaces? | Excel Discussion (Misc queries) | |||
how do I remove leading spaces and leave the remianing spaces w | Excel Worksheet Functions | |||
remove trailing spaces | Excel Discussion (Misc queries) | |||
How do I remove spaces | Excel Discussion (Misc queries) | |||
Remove spaces | Excel Programming |