+ Reply to Thread
Results 1 to 6 of 6

Using VB to save data from an input sheet to a record sheet

  1. #1
    Registered User
    Join Date
    01-25-2010
    Location
    Stafford, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Exclamation Using VB to save data from an input sheet to a record sheet

    Ok, So here is my problem
    My Spreadsheet resembles a booking system, and when the user enters the data of a booking with will show up in text format at the bottom in a on screen Receipt.
    What i want to do, is when the user presses save, it need to save all the information on the on screen receipt to another sheet which will act as a data base.
    I have attached the Spreadsheet.
    Please help.

    Note: The input sheet is where the data is inputted, and the Record sheet is where i want the data to be saved.
    Also Attachment is Excel 2007 file
    Attached Files Attached Files
    Last edited by JSCR01; 01-31-2010 at 06:18 PM.

  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: Using VB to save data from an input sheet to a record sheet

    This should get you started. I used:

    1) name ranges to defined the types of refreshments. Look in the Name Box to see the various categories added
    2) qty columns to allow you to set how many of each thing is being ordered
    3) Data Validation drop downs in the worksheet cells themselves instead of ActiveX controls, simpler, easier to maintain
    4) FORM buttons instead of ActiveX buttons

    You'll probably need to redesign the RECORDS sheet to allow slots to store types of refreshments and quantities, not sure what the purpose of the records file is, so wasn't sure how to suggest your changes. For now, the macro just puts in the "total" for refreshments.

    Hopefully this will give you usable ideas.
    Attached Files Attached Files
    _________________
    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
    01-25-2010
    Location
    Stafford, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Using VB to save data from an input sheet to a record sheet

    Quote Originally Posted by JBeaucaire View Post
    This should get you started. I used:

    1) name ranges to defined the types of refreshments. Look in the Name Box to see the various categories added
    2) qty columns to allow you to set how many of each thing is being ordered
    3) Data Validation drop downs in the worksheet cells themselves instead of ActiveX controls, simpler, easier to maintain
    4) FORM buttons instead of ActiveX buttons

    You'll probably need to redesign the RECORDS sheet to allow slots to store types of refreshments and quantities, not sure what the purpose of the records file is, so wasn't sure how to suggest your changes. For now, the macro just puts in the "total" for refreshments.

    Hopefully this will give you usable ideas.
    Hi, Cheers i like how you redesigned it, I used the active X as my tutor said it needed to be "Advanced" But May I ask, is it possible to describe to me what the code is doing? As it woul help me understand and learn what is going, I dont want to be one of those people who just ask for help, not understanding what is going on :P

    Thankyou
    James

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

    Re: Using VB to save data from an input sheet to a record sheet

    Comments added:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-25-2010
    Location
    Stafford, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Using VB to save data from an input sheet to a record sheet

    Quote Originally Posted by JBeaucaire View Post
    Comments added:

    Please Login or Register  to view this content.
    Thankyou for the help JBeaucaire I've had a look at this and it's given me a lot of help, but i do have one more question, can you use macros or vb to make a button use the save as command?

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

    Re: Using VB to save data from an input sheet to a record sheet

    Seems pointless. The SAVEAS is already a button on the File Menu.

    ...and please don't use the QUOTE button to do simple replies. Use the Quick Reply box below.

+ 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