LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default SaveSetting/GetSetting: not high-overhead?

applications are writing to the registry continually - a lot of the option
changes you make in word or excel are stored there as an example.

If you want to write to ini files, you still have the API versions of
PrivateProfileString available to work with.

Go to Google groups advanced search:

http://groups.google.com/advanced_group_search?hl=en

for search term (first box) use
PrivateProfileString
for newgroup use
microsoft.public.excel.programming

hit the search button

This should give you plenty of examples.

--
Regards,
Tom Ogilvy



"Mark Tangard" wrote in message
...
Hi folks,

Until recently my Excel VBA was rather pedstrian since I do most
work in Word. As that changes, I'm hitting obstacles I'd hoped
forever to avoid -- like storing info externally, which in Word
is typically done using INI files and the PrivateProfileString
property which Excel doesn't have, and which Googling indicates
I should use SaveSetting & GetSetting instead of.

But since SaveSetting saves information directly to the Windows
registry, which is a big mean scaly fire-breathing monster that
devours--- er, I mean a very large file that doesn't like being
messed with, isn't it treacherous to make frequent trivial saves
to it? Isn't it at least high-overhead?

To me the apparent advantage of INI files has always been that
they're tiny and also that they're just plain text, so repeatedly
altering their content seems both ultra-safe and a negligible
resource drain; I can change an INI file in the middle of a
macro without the slightest slowdown. Is the registry different
from other large files in this respect? That is, can it take
more abuse from frequent saves? And can it somehow do those
saves lightning fast?

Appreciate any insight.

--
Mark Tangard , Microsoft Word MVP
Note well: MVPs do not work for Microsoft.
"Life is nothing if you're not obsessed." --John Waters



 
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
high lighting Auto Control[_2_] Excel Discussion (Misc queries) 1 August 12th 08 06:07 AM
copy row high F Andrew Excel Worksheet Functions 1 January 2nd 08 10:38 AM
In col if high is 83 and low 15 how do i get high =100 and low=0 Sarah Excel Discussion (Misc queries) 2 December 7th 07 12:30 PM
High = 4 Formulas Excel Worksheet Functions 7 October 8th 07 04:10 PM
High = 4 take 2 High = 4 take 2 Excel Worksheet Functions 4 October 5th 07 04:49 PM


All times are GMT +1. The time now is 11:14 AM.

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"