+ Reply to Thread
Results 1 to 4 of 4

Storing variables from a Userform in an Add In

  1. #1
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Storing variables from a Userform in an Add In

    Hi

    I have a userform in an add in which has a number of checkboxes for users to determine form parameters and rather than requiring them to re check them each time the form is loaded I wanted to store the information so that it could be loaded on startup. Unfortunately I cannot find a way to store data within the add in and it seems the most likely option is to write to a text file and store that in the add in folder.

    I would like to enquire if anyone has come across a better alternative than using an external file.

    Regards

    Jeff
    Last edited by solnajeff; 02-02-2012 at 09:49 AM.

  2. #2
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Storing variables from a Userform in an Add In

    You can store the information in the addin (it is just a workbook with special properties, so it has at least one sheet) as long as you remember to save it (assuming you want it to persist between sessions) or you could put it in the registry using either SaveSetting or more complicated registry functions depending on where you want to put it.
    Good luck.

  3. #3
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Storing variables from a Userform in an Add In

    Hi

    Thanks for the heads up.

    I had been looking on the net and a reply on one of the other forums specifically stated that it was not possible and somewhat foolishly I accepted the answer without checking first

    Regards

    Jeff

  4. #4
    Valued Forum Contributor
    Join Date
    07-21-2008
    Location
    London, UK
    Posts
    326

    Re: Storing variables from a Userform in an Add In

    the add in is a excel worksheet so you could directly save teh value to teh worksheet and call it back, bit of code will be required for that and the value can be called from anywhere

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1