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: 1
Default How to write to a template txt file


Hi,
I am reading data from a row in a excel and need to write it to a
preexisting template file at specified points/lines. Would this be
possible as I am not very familiar with VB.

Simplistically, let's say i read data from the columns (A-F) of row 1:

A B C D E F
X Y Z 1 2 3

and need to write x,y,z,1,2,3 to specified lines of a text file after
doing some formatting to it (preceding x,y,z with certain characters)

File:
[__Header__]
ProductName = "lala "
ProductVersion = 1.1
Version = 120
Type = "type"

PATH=\"C:\\PATHNAME\\XY.TXT\"

data
data

%NAME = \"X\"

data
data

DURATION=2

etc.


Many Thanks :)


--
pouk
------------------------------------------------------------------------
pouk's Profile: http://www.excelforum.com/member.php...o&userid=24961
View this thread: http://www.excelforum.com/showthread...hreadid=385179

 
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
How do I get a template to write cheque's? Jackie Excel Discussion (Misc queries) 1 November 29th 06 01:04 AM
Can I write each row to a separate file? BigIan Excel Worksheet Functions 0 November 10th 05 03:30 PM
How can I Write this to a CSV File Please Paul Black[_2_] Excel Programming 4 June 25th 05 12:43 PM
Write Text File Nigel Excel Programming 9 March 31st 05 05:44 PM
How do I get a Template to write a Book ? peterm New Users to Excel 0 March 17th 05 02:39 AM


All times are GMT +1. The time now is 08:45 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"