+ Reply to Thread
Results 1 to 22 of 22

excel form creation

  1. #1
    Registered User
    Join Date
    03-13-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    14

    excel form creation

    I have a spreadsheet that we use at work and I would like to be able to create a form to make it faster and much more user friendly.

    We all use 2007.
    There are 21 columns and each row will be a new item when the form is completed.
    There are multiple formats for each column.
    I need the form in one sheet and the table of data in another.

    Is there a gui where I can create this. If I hit ALT+F11 I get the programming screen. But where to from there?

    Any assistance would be greatly appreciated.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: excel form creation

    hi rawtech
    welcome to the forum
    the link http://www.youtube.com/watch?v=5PN7lWJSobQ is very helpful
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: excel form creation

    Hi rawtech, in the VBE, click on insert and then select unserform
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  4. #4
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: excel form creation

    Sorry Pike, you beat me to it

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: excel form creation

    its all good .. there is no race .. but if there was...

  6. #6
    Registered User
    Join Date
    03-13-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: excel form creation

    Quote Originally Posted by Mordred View Post
    Hi rawtech, in the VBE, click on insert and then select unserform

    I am in there now fumbling my way through the labels and text feilds and all that, looking at some date picker stuff now.

    Just wondering though, how does this know where to put everything once the form is filled in.

    By the way the nifty people I work for blocked good ol youtube

    btw, thank you for the welcome :-)

  7. #7
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

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

    Re: excel form creation

    Excel has an inbuilt dataform

    There's an example of a custom form here
    Hope that helps.

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

    Free DataBaseForm example

  9. #9
    Registered User
    Join Date
    03-13-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: excel form creation

    OK, I am not sure if I am allowed to do this,*************.

    I have attached an excel file with what I need. Hopefully should be pretty straight forward.
    Attached Files Attached Files
    Last edited by pike; 03-14-2011 at 07:59 PM.

  10. #10
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: excel form creation

    rawtech..
    please keep all post in the forum ... ask specific questions and we can help ... it a help forum not a do it for me forum

  11. #11
    Registered User
    Join Date
    03-13-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: excel form creation

    Sorry Pike, I meant to disrespect to the way this or any other forum works.
    I am running through one of the links suggested above. Hopefully I will get it going, and I will post questions as they pop up.

  12. #12
    Registered User
    Join Date
    03-13-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: excel form creation

    Just looking at this example, is there a way to have the form, once created display on a sheet rather than have a button to pop it up ?

    http://www.exceltip.com/show_tip/Use...Excel/629.html

  13. #13
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: excel form creation

    hi rawtech,

    i dont follow? can you attach a sample workbook of your layout?

  14. #14
    Registered User
    Join Date
    03-13-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: excel form creation

    What I meant was that on that example, there is a button on 1 sheet when you click on it the user form opens up. Is there a way to just have the for displaying already and not have to click on the button to open it?

  15. #15
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: excel form creation

    rawtech
    one way would be in the worksheet module add the code

    Please Login or Register  to view this content.
    when the sheet is activate it will open the userform

    another is code in the open workbook

  16. #16
    Registered User
    Join Date
    03-13-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: excel form creation

    Great, that worked fine, but a small issue if I am being picky...

    I saved that code under sheet2. I then went to sheet2 and it popped up as expected, I then closed it and saved the file while sheet2 was displayed. I then closed and re-opened the file and I had to click away and then back to sheet2 for it to display.

    Is there a way to have it display permanently in sheet2?

  17. #17
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: excel form creation

    you will always have to close the userform at some time so add a exit command button
    to the userform
    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    and also add the code to open workbook event in thisworkbook module
    Please Login or Register  to view this content.

  18. #18
    Registered User
    Join Date
    03-13-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: excel form creation

    I have the below code to display the date and time and it does it well.
    Please Login or Register  to view this content.
    I also have a txtDuration box on the userform.
    Is there anyway to have an If statement to disable the the txtDuration box until start date/time and end date/time has been filled in and then it will be anabled and display the duration in hours and minutes and also add it to the sheet in ActiveCell.Offset(0, 11)

  19. #19
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: excel form creation

    Dude
    time to upload a example workbook, as I dont know what you are working on or where the code is entered.

  20. #20
    Registered User
    Join Date
    03-13-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: excel form creation

    Here is the sheet I have been working on.

    I have everything working except the FIND button which I haven't even started to research yet. I have been learning a bit thanks to you pushing me to learn

    I have been just now researching on how to display the the duration in days, hours & mins.
    I have found something I am not sure if it will work though, haven't had time to try it just yet. http://www.ozgrid.com/forum/showthre...t=51729&page=1

    Any suggestions on getting the FIND button to work and display in the search results area would be handy as well.
    Attached Files Attached Files

  21. #21
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: excel form creation

    Hey rawtech,
    well done

    Please Login or Register  to view this content.
    what else?

  22. #22
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: excel form creation

    rawtech
    VBA has a built-in time difference function you can use "DateDiff"

    Please Login or Register  to view this content.

+ 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