Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro to save named range as text
Is there a way to save a named range as a text file. I have only found how
to save a worksheet as a text file. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro to save named range as text
How about creating a new sheet, copy the named range to that sheet, then
saving it. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "GFN" wrote in message ... Is there a way to save a named range as a text file. I have only found how to save a worksheet as a text file. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro to save named range as text
If you have other data that you need to save on the same sheet, just Select
the range you want to save as text and use the formatcellsNumber tab and under Categories, click on text. If other users require that range as other than text then you will need to Save As another filename so the original file will still be available to other users. "GFN" wrote: Is there a way to save a named range as a text file. I have only found how to save a worksheet as a text file. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro to save named range as text
Hi,
this is create new txt file in c:\ : Sub texte() Dim Mytxt Mytxt = FreeFile Open "C:\myxtx.txt" For Append As #Mytxt For Each rng In Range("rng2") If rng.Value < "" Then Print #Mytxt, rng.Value Next rng Close #Mytxt End Sub but not the same text possition of columns it is row based. -- Regards, Halim "GFN" wrote: Is there a way to save a named range as a text file. I have only found how to save a worksheet as a text file. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Named Range Macro | Excel Discussion (Misc queries) | |||
Conditional formatting when text is contained in a named range | Excel Discussion (Misc queries) | |||
Embed Data from a named Range into a text box | Excel Worksheet Functions | |||
How do you Identify text as a named range in excel | Excel Discussion (Misc queries) | |||
How to set named range in macro? | Excel Programming |