Consulting

Results 1 to 4 of 4

Thread: Search Dir for Workbook and worksheet and add either as required

  1. #1

    Search Dir for Workbook and worksheet and add either as required

    Hello and I'm pretty new to VBA so please bear with me

    I have daily worksheets (mon - fri) in a weekly workbook (1 - 52) for a year. What I want to do is use a single worksheet in a single workbook that I can use as an input model, where once I have finished updating I can, on click of a button, run a macro that will return a message box or userform displaying the last workbook saved and the last worksheet added to that workbook. For Example: Workbook 3 / Worksheet Wed. This lets me know that if I continue, the model worksheet will be copied/saved to an added worksheet named Thu in Workbook 3. Then the model will clear leaving a message box stating Week 3, Thursday has been saved. Please let me know if I'm barking up the wrong tree.

  2. #2
    VBAX Expert Leith Ross's Avatar
    Joined
    Oct 2012
    Location
    San Francisco, California
    Posts
    552
    Location
    Hello Mike Ryan,

    Your are the right track. A VBA UserForm makes organizing and controlling user input much easier. But, it requires more programming than entering data on a worksheet. To determine which approach would be best, you would need to post a sample of your data layout, both input and output.

    If you can not post it here, you can upload your sample to a public file sharing service and post the link in this forum. If can upload your workbook, that would be even better. If you have sensitive, personal, or confidential information in your workbook, please redact it before you upload.
    Sincerely,
    Leith Ross

    "1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG"

  3. #3
    The data is in the form of a heijunka or scheduling tool...so basically a table of data moving across various time slots as columns and moving down across various names...intersecting cells will have various duty requirements.

  4. #4
    VBAX Expert Leith Ross's Avatar
    Joined
    Oct 2012
    Location
    San Francisco, California
    Posts
    552
    Location
    Hello Mike,

    It has been 12 years since I did anything with Sigma Six. So, I am more than a little rusty.

    If you post a picture of how your data is organized it would be a big help.
    Sincerely,
    Leith Ross

    "1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG"

Posting Permissions

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