+ Reply to Thread
Results 1 to 7 of 7

Drop down menu in User form

  1. #1
    Forum Contributor
    Join Date
    02-13-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    140

    Drop down menu in User form

    Please find the attachment.
    In attachment I have created userform called "Details_of_Proposer"

    First I need a vba code to call the form for data entry

    second I need serial number to be automatially generated starting from one while entering the form detals

    third I need drop down list in some fields of the form as given below

    In Proposal field
    Need options like 1) New Policy, 2) Renewal Policy, 3) Expired policy

    In Select any one scheme field
    Need options like 1) 2 years policy, 2) 5 years policy 3) 10 years polucy

    In M/F field
    Need options like 1) Male, 2) Female 3) Transgender

    In Gender field
    Need options like 1) Male, 2) Female 3) Transgender

    In Mode of payment field
    Need options like 1) Demand Draft, 2) Cheque 3) Online

    Also I want all the data to be saved in Data sheet record wise (all Fields one after one)

  2. #2
    Forum Contributor
    Join Date
    02-13-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    140

    Re: Drop down menu in User form

    here is the attachment
    Attached Files Attached Files

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Drop down menu in User form

    Hello winmaxservices,

    Here is the UserForm_Initialize event code that has been added to the attached workbook.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor
    Join Date
    02-13-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    140

    Re: Drop down menu in User form

    how to call the form for data entry?

  5. #5
    Forum Contributor
    Join Date
    02-13-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    140

    Re: Drop down menu in User form

    no it is nit running can anyone help on attached file again?
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    02-13-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    140

    Re: Drop down menu in User form

    Hi,

    Sorry I have done few mistakes in coding, Hence it was not working. Now it is working. Please find attached.

    Also I need few more coding in the same form as mentioned below.

    1) field = Serial Number: Code need for set Auto serial number starting from number 1
    2) field = Date: Code need for enter date only in dd/mm/yyyy
    3) field = POD No.: Need code to enter Alphanumeric text
    4) field = Recd. Date = Code need for enter date only in dd/mm/yyyy
    5) field = Name of the Primary Number = only alphabets Entry
    6) field = Contact No. = Only Numeric Number Entry (max 11 characters)
    7) field = JIO SA ID No.: Alphanumeric Text
    8) field = DOB (there are 8 fields) :=Code need for enter date only in dd/mm/yyyy
    9) field = Age (there are 8 fields) :=Code need for enter date only maximum three digit numeric value
    10) field = Date (In payment details):=Code need for enter date only in dd/mm/yyyy
    11) field = Name (Eight fields) = only alphabets Entry
    12) field = Name (In Nominee Details) = only alphabets Entry
    13) field = Demand Draft / RTGS / NEFT No (in payment details)=Alphanumberic Text
    14) field = Bank Name(in payment details)=Only Alphabets
    15) field = Date(In payment details): Code need for enter date only in dd/mm/yyyy
    16) field = Amount(In payment details): Only numeric value with 2 decimals.


    Need Dependent fields

    1) If field "Type of Proposal" is Selected as "New Policy" then field "JIO SA ID" (8 fields) should not be writable.
    If field "Type of Proposal" is Selected as "Renewal Policy" then field "JIO SA ID" (8 fields) should be writable. Means JIO SA ID is applicable only for Renewal Policy

    2) If field "Scheme" is Selected as "New Policy" then field "JIO SA ID" (8 fields) should not be writable.

    Command Buttons

    1) "Submit" = To save all details in Respective columns in Sheet "Data Sheet"
    2) "Clear Fields"= To clear all the details visible on form
    3) "Show Next Record>>" to go to view or edit the details of next record
    4) "<<Show Prev Record" to go to view or edit the details of previous record
    5) "Enter Recored number to View & Edit" = to enter manually the record number in a cell to view or edit the particular details
    6) "Close form" = To close the data entry form

    Wants total number of recored enter in data sheet in "Total number of Recorde Entered"

    Wants to save all the entered details to be save in Sheet "Data Sheet" after clicking on Submit

    Code needed for Sheet "Dashboard"

    Total Number of Application Received (Need Total number of Record saved in sheet "Data Sheet"
    Date Wise Records: Need code to calculate the number of records entered in Sheet " Data Sheet within specific data (from date and to date)
    Attached Files Attached Files

  7. #7
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    Cool Re: Drop down menu in User form

    Quote Originally Posted by winmaxservices View Post
    Hi,

    Sorry I have done few mistakes in coding, Hence it was not working. Now it is working. Please find attached.

    Also I need few more coding in the same form as mentioned below.

    1) field = Serial Number: Code need for set Auto serial number starting from number 1
    2) field = Date: Code need for enter date only in dd/mm/yyyy
    3) field = POD No.: Need code to enter Alphanumeric text
    4) field = Recd. Date = Code need for enter date only in dd/mm/yyyy
    5) field = Name of the Primary Number = only alphabets Entry
    6) field = Contact No. = Only Numeric Number Entry (max 11 characters)
    7) field = JIO SA ID No.: Alphanumeric Text
    8) field = DOB (there are 8 fields) :=Code need for enter date only in dd/mm/yyyy
    9) field = Age (there are 8 fields) :=Code need for enter date only maximum three digit numeric value
    10) field = Date (In payment details):=Code need for enter date only in dd/mm/yyyy
    11) field = Name (Eight fields) = only alphabets Entry
    12) field = Name (In Nominee Details) = only alphabets Entry
    13) field = Demand Draft / RTGS / NEFT No (in payment details)=Alphanumberic Text
    14) field = Bank Name(in payment details)=Only Alphabets
    15) field = Date(In payment details): Code need for enter date only in dd/mm/yyyy
    16) field = Amount(In payment details): Only numeric value with 2 decimals.


    Need Dependent fields

    1) If field "Type of Proposal" is Selected as "New Policy" then field "JIO SA ID" (8 fields) should not be writable.
    If field "Type of Proposal" is Selected as "Renewal Policy" then field "JIO SA ID" (8 fields) should be writable. Means JIO SA ID is applicable only for Renewal Policy

    2) If field "Scheme" is Selected as "New Policy" then field "JIO SA ID" (8 fields) should not be writable.

    Command Buttons

    1) "Submit" = To save all details in Respective columns in Sheet "Data Sheet"
    2) "Clear Fields"= To clear all the details visible on form
    3) "Show Next Record>>" to go to view or edit the details of next record
    4) "<<Show Prev Record" to go to view or edit the details of previous record
    5) "Enter Recored number to View & Edit" = to enter manually the record number in a cell to view or edit the particular details
    6) "Close form" = To close the data entry form

    Wants total number of recored enter in data sheet in "Total number of Recorde Entered"

    Wants to save all the entered details to be save in Sheet "Data Sheet" after clicking on Submit

    Code needed for Sheet "Dashboard"

    Total Number of Application Received (Need Total number of Record saved in sheet "Data Sheet"
    Date Wise Records: Need code to calculate the number of records entered in Sheet " Data Sheet within specific data (from date and to date)


    Good afternoon from Brisbane Australia.

    I am a 74 year old man and am trying to keep my old brain from drying up, so I have taken up learning all about EXCEL I am running Office 2016,
    I would be interested to see the final copy of your document so I can study to see how it all works please.

    I can be contacted at [email protected]

    Peter

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Drop down menu for an inventory order form
    By deafdef in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2014, 02:46 AM
  2. In cell pop up menu from user form
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2013, 08:38 AM
  3. Drop down menu in data entry form
    By yoosed in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-15-2013, 10:25 AM
  4. My user defined function doesn't show up in autocomplete drop down menu
    By wlan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2010, 09:56 AM
  5. Word Form - How to print a list of fields and drop down menu items
    By HighlandScott in forum Word Formatting & General
    Replies: 31
    Last Post: 02-23-2009, 08:09 AM
  6. User form drop down box
    By Genx in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-27-2008, 05:28 PM
  7. [SOLVED] user form drop down box
    By Glenn in forum Excel General
    Replies: 8
    Last Post: 06-22-2005, 04:05 AM
  8. link to pdf file & menu bar in user form
    By Fendic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2005, 03:31 PM

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