Ed from AZ used his keyboard to write :
> My first Add-in. Everything runs well. (Woo-hoo!!)
>
> In the form, I have eight fields with default values that the user can
> change in the form.
> These values are set in the form's Load event.
> But what if the user decides he wants different default values?
> I'd hate to make him have to change all eight values each and every
> time!
>
> Can I set the default values in cells in the Add-in?
> And read them from there during the Load event?
> And set an option in the form to save the values entered into the form
> into the Add-in as the new defaults?
>
> Ed
Yes. You just need to save the addin anytime users make changes to
those defaults. Of course, updating the addin will cause users to lose
their default values and so I recommend storing the values in a text
file OR use SaveSetting/GetSetting to store in the Registry. This would
persist per user so any updates to your addin would not be a problem
because the userform can load the values from the storage location.
--
Garry
Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc