+ Reply to Thread
Results 1 to 16 of 16

Create User Forms of "The Course Booking Form"

  1. #1
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Create User Forms of "The Course Booking Form"

    Hi,
    I have a little knowledge of Excel Programming and I am seeking advice and help. With reference to the http://www.exceltip.com/st/Create_Us...Excel/629.html, I managed to create the form but I somehow couldn’t get it executed. Can someone please help me? Attached herewith my file for evaluation. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Place this code in an Standard Module

    Please Login or Register  to view this content.
    Add a button grom the Forms Toolbar & then assign the macro to it.

    The code below is an alternative way of coding the Form that I wrote a while ago.
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493
    Please Login or Register  to view this content.
    The Above code wants to select a sheet called
    Course Bookings
    You don't have that sheet in your workbook
    change it to sheet1 or what ever name of the sheet you have

  4. #4
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342
    Hi Dave & Roy,
    I have done it and it works.All informations I input were transfered to the worksheet. How do I create a "Report" to print them? or please give me some other example so that I can review and learn. Pls take a look at my file.Thanks a million
    Attached Files Attached Files

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493
    Hi, you could add another button the the UserForm
    and put a code in it something like this

    Please Login or Register  to view this content.
    I just got the code from the macro recorder

  6. #6
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342
    Hi Dave,
    I have copied your codes but it didnt work.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by seanyeap
    Hi Dave,
    I have copied your codes but it didnt work.
    That doesn't help at all! What error r you getting?

    Where have you copied the code to?

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493
    Quote Originally Posted by seanyeap
    Hi Dave,
    I have copied your codes but it didnt work.
    Hi Sean,
    You need to get your own code from the macro recorder

  9. #9
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You could try

    Please Login or Register  to view this content.

  10. #10
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342
    Hi Roy,
    You have solved my problem, with the new "print command button" I could print the whole worksheet.Thanks a lot. Ok,after all data has been entered,now lets say I have 100 records and I need to search 1 particular record then print it,how do I do it,thank again.
    Attached Files Attached Files

  11. #11
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493
    Hi Sean,
    The easiest way would be to use the autofilter
    There are no formulas you just select the record you want, here is a site that explains autofilter, it would be a good idea to bookmark this site for other excel catagories

    http://www.contextures.com/xlautofilter01.html

  12. #12
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Take a look at the DatabaseForm example here:

    http://www.excel-it.com/vba_examples.htm

  13. #13
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342
    Hi Roy And Dave,
    Thanks for the tips and guidance.I will read it through.

  14. #14
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342
    Hi Roy And Dave,
    I have somehow created a sample for the tutorial you gave me. However,I encountered several issues that I couldnt solve.
    I have copied my existing Excel Worksheet from Row 2 to Row 15 to this new data entry form. I was unable to use the "find command button" to find and was only able to find row 16 when it was entered as new record.Pls advise.Thanks in advance.Pls refer to the attachment.
    Attached Files Attached Files

  15. #15
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342
    Hi All,
    Can someone please help me,thanks in advance

  16. #16
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You haven't amended the search range.

    Your list of parts contain unprintable characters

+ 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