Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 213
Default A variable that save its value

I use registry settings:
'======
Sub GetRegistrySetting()
'Begin Registry setting
'"appname:=" = Desired name you create, variable or "string", preferred
a "string"
'"section:=" = Desired name you create, variable or "string"
'"Key:=" = Desired name you create, variable or "string"
'Notes: Variables do not use quotes, strings use quotes
SomeVariable = GetSetting(appname:="AppNameHere",
section:="SectionNameHere", _
Key:="KeyNameHere")
'End registry setting
End Sub

Sub SetRegistrySetting()
'Begin Registry setting
'"appname:=" = Desired name you create, variable or string, preferred a
string
'"section:=" = Desired name you create, variable or string
'"Key:=" = Desired name you create, variable or string
'setting:=" = variable or string
SaveSetting appname:="AppNameHere", section:="SectionNameHere", _
Key:="KeyNameHere", setting:="SettingValueHere"
'End registry setting
End Sub
'======
--
Regards

VBA.Noob.Confused
XP Pro
Office 2007



"filo666" wrote:

Hi, There is somehow a variable rememver his value allthought excel is
closed???
TKS

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
Save Cellformat in a variable jj Excel Discussion (Misc queries) 0 January 17th 06 05:59 PM
How to Save As Variable File Name [email protected] Excel Programming 10 May 25th 05 12:27 PM
Save to Path & Variable file name Otto Moehrbach[_6_] Excel Programming 4 September 2nd 04 10:44 PM
auto save with variable name with html extension Jason[_29_] Excel Programming 0 May 25th 04 03:40 AM
Using a variable string in a file save path Ron[_13_] Excel Programming 1 October 16th 03 08:29 PM


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