Consulting

Results 1 to 6 of 6

Thread: Guidance and Direction

  1. #1
    VBAX Regular
    Joined
    Aug 2005
    Posts
    79
    Location

    Guidance and Direction

    I have created a UserForm for a spread sheet that is used to create a paver (like a drive way paver) proposal. The CostCalc spread sheet calculates and records all the information for a complete proposal. So my UserForm has 6 tab pages to capture all the data. The UserForm was created because 1) to make it easier for people to enter the data and 2) to hide the calculations that are performed. I have a print button on the UserForm that will print out the CostCalc spread sheet which has a proposal form as one of its sheets.

    Programming I know how to do. I am recently new to VBA but I am learning quickly. I am not sure how to do some things that I want to do so that is the purpose of this thread. I need some suggestions. I also want the input of those that have more experience at this.

    1) I want to use the CostCalc spread sheet in the back ground to actually do the calculations that will be displayed on the UserForm as the quantities are inputed in the UserForm. I want that CostCalc to be hidden. Where do I look at to do this?

    2) I am thinking that as I user inputs Data to the UserForm, I will write the input to the spread sheet to get the calculations that will be displayed in the UserForm. Is this easily done? Will the response be quick?

    3) When the user is done inputing data, I want to save the template CostCalc spread sheet to a new one with a spread sheet saved named by the project number. I assume that I will SaveAs? And I want the Template CostCalc sheet to be new so that the user can input another proposal.

    4) Are there some thngs that I need to consider for such a under taking?

    Thank you for your responses!

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Nils,
    I've tried to answer your questions in this example.

    You might also want to consider:
    AutoNumbering the Order numbers
    Enabling the form (or a similar one) to display details from a saved order by entering the number on the form
    Protecting the saved sheets to prevent accidental changes. Maybe allow these only by using the form.
    Regards
    Malcolm
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    A further thought, maybe for the future, is to create a routine to extract appropriate data from the order and create a mailmerge document within Word for sending to your Clients. Although you can produce Reports or Letters within Excel, they rarely format properly, unless very simple.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    How about creating an add-in. The userform can be defined to the add-in, as can the CostCalc spreadsheet. Being in an add-in, the CoistCalc spreadsheet will not be seen, and can be copied at the end as saved as a new workbook.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    Why do the calculations on the sheet. They can be done ithin the VBA
    Hope that helps.
    Get the free Excel based Toolbar or click here for free examples & Excel Consultancy

    RoyUK

  6. #6
    VBAX Regular
    Joined
    Aug 2005
    Posts
    79
    Location
    Yes the calculations could be done in the application but why when you have a spread sheet that works well. I am just creating a user interface. If I was writting this in anything but VBA, I would store the data. Another advanatage is that the manager can look at the data in another format if he wants to.

Posting Permissions

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