[Webinar] Streamline your web hosting managementRegister Today


Saving settings on the vba forms

Posted on 2010-04-03
Medium Priority
Last Modified: 2012-05-09
Dear all,

In many cases, I have to do some settings (e.g. text size, starting number) in the form before execution the programme. However, that would be very tiring if I need to redo the same setting wheneven I restart the form in different documents. Is it possible to save the setting in the memory, file or registry?

Thanks very much
Question by:Lawlords
  • 3
LVL 31

Assisted Solution

Frosty555 earned 664 total points
ID: 29575144
Look into SaveSetting, GetSetting and DeleteSetting functions. It will give you a fairly easy way to save some data in the registry for reading the next time your program loads.
LVL 45

Expert Comment

ID: 29584679
Whilst it is certainly possible to save setting to the Registry it is not a brilliant idea as it is not portable so others cannot make use of the file. The other main problem is that in most work environments access to the Registry is intentionally blocked.

LVL 45

Accepted Solution

patrickab earned 1336 total points
ID: 29585098
Having said that attached is a small file with a macro that saves data to the Registry. Hope it helps.


Author Closing Comment

ID: 31710576
Thanks Frosty555 :

 I finally know how to save, get and the delete the settings by those functions after research from various websites.

Thanks patrickab:  

Your sample file really give me a quick help in applying the functions. I was quite confused by reading the technical websites before getting the real example.
LVL 45

Expert Comment

ID: 29661290
Lawlords - Thanks for the grade - Patrick

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

640 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question