+ Reply to Thread
Results 1 to 3 of 3

Advice on approach to a problem

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    Nashville
    MS-Off Ver
    2010
    Posts
    76

    Advice on approach to a problem

    Hello all,

    I have created an interviewing tool for auto-generating security non-functionals. Analysts sit with a technical SME and ask a series of questions, and the answers are used to output a set of NFRs.

    The design of the tool is such that users never need to save the tool, it exports their results into a new file, even PDF if they choose. Because of this, every time the file is opened, all previous data is cleared out, some tabs are hidden, others revealed, and focus set on the "Instructions" page.

    I realized recently a potential flaw in this. It may be that one technical SME cannot answer all of the questions, so the analyst may need to "pause" and finish with someone else later. Simply doing a "Save As" won't fix the problem, as their work will be cleared out when they open back up.

    I need to figure out how to allow a "Preserve State" Save As while not losing my current code.

    What do you think of this approach:
    I create a hidden "Pause" tab. When the users click a "Finish Later" button, data gets populated into that tab and a SaveAs dialogue is brought up. I then update my Open Workbook code to check for data in the Pause Tab. If found, the Open Workbook code repopulates the user's inputs, and clears out the data in the Pause Tab.

    Thoughts?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Advice on approach to a problem

    Since you never save your workbook normally, on the rare instance you DO want to save a partially completed survey then that saved workbook will now have a different name than your main workbook. So your Workbook_Open macro need only check the name of ThisWorkbook. If the name is the normal name, clear all data and proceed clean, but if the name is anything else, do not clear the data.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-29-2010
    Location
    Nashville
    MS-Off Ver
    2010
    Posts
    76

    Re: Advice on approach to a problem

    Thanks, that's not a bad approach

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Moving data from form to collapsible table
    By nick2price in forum Excel General
    Replies: 1
    Last Post: 09-04-2013, 06:13 AM
  2. [SOLVED] Help for v-lookup approach instead of manually cell linking approach - Excel 2010
    By Mirisage in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-31-2013, 01:32 PM
  3. Replies: 2
    Last Post: 01-22-2013, 07:09 AM
  4. Complex Macro/Problem Approach
    By lmorrison in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2011, 01:29 PM
  5. [SOLVED] Advice on Approach to Convert List of Dates into a Calender format
    By Andibevan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2005, 11:00 AM

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