LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default How to modify specific lines in a .ini file?

Hello,

When writing multiple values to a .ini file I'm familiar with the
following basic code:

Open "c:\my.ini" For Output As #1
Print #1, "1"
Print #1, "2"
Print #1, "3"
Close #1

Is there a way to modify/write values to specific lines only, for
example modifying the "2" value on line 2 to "5", without overwriting
the other lines with their unchanged values?

Thanks for any feedback!

Jim

 
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
Create/modify date for specific sheets? Steve Vincent Excel Discussion (Misc queries) 3 September 17th 09 08:25 PM
printing specific lines Jim Office Supply Store Owner Excel Discussion (Misc queries) 1 October 10th 08 11:42 PM
modify a macro to apply to a specific range of cells Dave F Excel Discussion (Misc queries) 2 April 25th 07 03:00 AM
Help...Need to modify data within a column in a .csv file [email protected] Excel Discussion (Misc queries) 11 October 26th 05 11:23 PM
Help...Need to modify data within a column in a .csv file [email protected] Excel Worksheet Functions 11 October 26th 05 11:23 PM


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