LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 215
Default Exporting Excel Data As Unformatted Text

Hello;

I'll try to simplify what I'm trying to do without getting into too much
details that might be considered irrelevant to my question.

1. A set of VBA procedures are run successfully, and the results are
compiled on a single w/s "mySheet" in a single w/b "myBook".

2. I intend to repeat 1. above 1,000s of times (same w/b, same w/s).

3. Consider a single run. The results of interest on "mySheet" are confined
to a range, say, A20:K40, named "myInpRange", with a 7-digit run identifier
ID automatically generated and stored in cell F5, say, F5 = 1234567

4. I've successfuly performed the following tasks manually:
....a) copy range A20:K40 of "mySheet"
....b) Open a new MS Word document
....c) Paste Special as Unformatted Text
....d) Save the Word file for this run As: LL_1234567.inp (="LL_" & F5 &
".inp")
....e) Close the Word file.
....f) Repeat a) to e) above for the next run.

Q: How to code a VBA Excel macro to handle Excel & Word, and run from a
button on the w/s "mySheet" to perform the tasks a) to e) above ??

In case you might wonder why I do have to go through this trouble. Well, my
next set of programs are DOS-Applications, which only allow their redirected
input data files to be as described above.

Your help would be greatly appreciated. Have a pleasant w/e.
 
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
Paste unformatted text GregNga Excel Discussion (Misc queries) 9 August 27th 08 01:02 PM
Paste Special\Unformatted Text\Display as Icon sam Excel Discussion (Misc queries) 0 January 8th 08 03:46 PM
Pasting unformatted text Erik Wikström Excel Discussion (Misc queries) 0 September 19th 07 01:57 PM
merge unformatted date with text Art Excel Discussion (Misc queries) 2 March 18th 05 05:28 PM
Exporting data to text ppatin Excel Programming 1 January 16th 04 07:15 PM


All times are GMT +1. The time now is 11:30 PM.

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

About Us

"It's about Microsoft Excel"