Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Writing to a text file some data

activesheet.copy
With Activesheet
set rng = .Range(.Range("C5"),.Range("C5").End(xldown))
.rows(rng.rows(rng.rows.count).row & ":65536").Delete
rng.copy .Range("A1")
.Range("B:IV").EntireColumn.Delete
set rng = .Range("A1").Resize(rng.count)
for each cell in rng
cell.Value = "Check " & cell.value " & done"
Next
End with
Activeworkbook.SaveAs "C:\Files\MyText.csv, FileFormat:=xlCSV

--
Regards,
Tom Ogilvy

"mark" wrote in message
...
I need to export to text file a column starting in C5, BUT I don't know

how
many entries in the column.
I actually need to add the word Check before the entry of the column and
the word Done after.
For example if I have 3 entries: 77777
98988
98881

Will need to be exported as:
Check 77777 Done
Check 98988 Done
Check 98881 Done
Can it be done?

Many Thanks
M



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
eliminating quotation marks when writing to a text file margrabe[_2_] Excel Programming 5 February 10th 04 03:27 AM
eliminating quotation marks when writing to a text file margrabe Excel Programming 0 February 9th 04 04:21 PM
WRITING TO A TEXT FILE WITH SPECIFIC FORMAT [email protected] Excel Programming 2 December 27th 03 05:04 AM
Writing a text file from Excel using VBA ... a small issue ajames54 Excel Programming 3 December 3rd 03 03:35 PM
Writing multilines to a text file without closing ccdubs Excel Programming 1 July 10th 03 07:43 AM


All times are GMT +1. The time now is 05:44 AM.

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"