Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Using INI files

Can some body tell me if there any benefit in using INI
file with excel applications, I read a mag where it said
that using INI files to hold items for forms and
formatting. Has any body here used them I can understand
using them with VB6 etc etc any feedback will be much
appreciated .
Frank
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Using INI files

Frank,

You can use INI files or the system registry to save settings
from one session to the next. For example, you can store the
position of a form when it is closed and then display the form in
the same position the next time it is displayed. If the settings
are stored in an INI file or the registry, they will be saved
even if the user exits Excel (or the VB6 program) between uses.

INI files are considered a dated, if not obsolete, approach, and
the generally preferred way is to save settings in the system
registry instead. You can use the GetSetting and SaveSetting VBA
functions to read and write values to the registry.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Frank" wrote in message
...
Can some body tell me if there any benefit in using INI
file with excel applications, I read a mag where it said
that using INI files to hold items for forms and
formatting. Has any body here used them I can understand
using them with VB6 etc etc any feedback will be much
appreciated .
Frank



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using INI files

They have their benefits and draw backs. I think the current standar
is to use the windows registry now. But I still think it is beneficia
to use a hidden or xlveryhidden sheet to store the data than an in
file. It keeps the data with the spreadsheet, you dont have to worr
about moving the spreadsheet and not the .ini file. This isn't much a
option in vb6 forms, but you have a great data storage mechanis
already built into excel, the worksheets. If you need to hav
updatable entries and defualts that will be the same for multipl
workbooks then a .ini file might be a better choice. Those are m
opinions on the matter.

Keith
www.kjtfs.co

--
Message posted from http://www.ExcelForum.com

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
Navigating to Excel files over network slow, but not Word files Newbie123 Excel Discussion (Misc queries) 1 December 2nd 09 01:18 PM
How can I batch convert 97-2003 .xls files to 2007 .xlsx files Dave Nuttall Excel Discussion (Misc queries) 4 August 3rd 09 11:38 PM
Excel 2007 tmp files filling up drive with XLSM files Jim Excel Worksheet Functions 0 September 12th 08 03:31 PM
How to change default Open/Files of Type to "Microsoft Excel Files Tammy Excel Discussion (Misc queries) 2 January 14th 08 11:06 PM
Drive Erased, got Files back but only excel files scrambled, help. Shawnky Excel Discussion (Misc queries) 0 May 8th 06 07:26 PM


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