Results 1 to 3 of 3

Thread: VBA programming assistance

  1. #1

    Red face VBA programming assistance

    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hello All,
    I am working on creating a VBA multiple form based program to edit a text file, basically modify columns with user defined input that occurs monthly. This program would be to assist multiple users in editing this large text file. This modification of the file could be the same each month. Is there a way for a user to be able to pull up “settings” that they had last month to redo the manipulation? I appreciate any input to point me in the right direction. Thank you.

  2. #2
    Super Moderator JeffreyWeir's Avatar
    Join Date
    Mar 2011
    New Zealand
    There sure is...just save the settings to either a hidden worksheet or a named constant (i.e. a named range that holds a constant, rather than a reference to an actual cell)

    For example, on a workseet called 'Settings' set up a named range called "UserName" to say hold the user's name. Then you can refer to this in VBA like so:
    IF [UserName] = "Jeff" then msgbox "Don't muck up my spreadsheet, Jeff!"

    To set up a named constant for the above example, open NameManager, click "New", put UserName in the Name box and in the RefersTo box type "Jeff" WITHOUT an equals sign (and without the quotes)

  3. #3
    Thank you Jeff, excellent idea. I really appreciate it. Have a great day!

Tags for this Thread

Posting Permissions

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