Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GFN GFN is offline
external usenet poster
 
Posts: 8
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default 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
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
Named Range Macro Lost Excel Discussion (Misc queries) 1 September 22nd 09 11:17 PM
Conditional formatting when text is contained in a named range Hugh Excel Discussion (Misc queries) 2 July 31st 09 02:35 PM
Embed Data from a named Range into a text box rrcd124 Excel Worksheet Functions 3 May 2nd 09 12:41 AM
How do you Identify text as a named range in excel DMDave Excel Discussion (Misc queries) 6 May 7th 06 11:48 PM
How to set named range in macro? davegb Excel Programming 12 February 8th 06 02:46 PM


All times are GMT +1. The time now is 10:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"