VBA form question

dosman

New Member
Joined
Jan 24, 2019
Messages
35
I have created a 23 column spreadsheet with data validation cells using drop down lists and a few columns that do the standard date formatting (4/18/19 displays as Thursday, April 18, 2019)

Converting it to a table is not desirable and I would love to have a user form that "pulls" the validations from the existing cells in 2 sheets. Once the form creates the next row in the sheet I need to be able to go back and adjust values in the drop down lists without having to use the form which I only need to create a new row of data.

I am not a VB coder (although I am learning) but this is above my current pay grade. I do not know if the form would require me to clear the validation from a cell to allow it to do its magic or if the form can merely mirror the validations and formatting that already exist. I need the drop downs to still be functional once the form creates the row.

The form would only require a button on the main sheet labeled "New Job" with an "Add" button at the bottom. I can create the form using the VBA editor but am not sure of the code to insert.

I am more than willing to share the spreadsheet for analysis if anyone can help.

Best regards to an awesome community.
 
Last edited:
I apologize for getting back to you do late. I really think the form is going to work as you submitted in the advance unless you think it is not. My only question is how to invoke the form from the main sheet with a button. I do not see any modules to call.

Thanks again for your assistance

Put the following in a module

Code:
sub [COLOR=#0000ff]callform[/COLOR]()
userform1.show
end sub

assign the callform macro to a button
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I have taken the form you created and exported it to my live data which was identical to what I sent you in the copy you worked with. The form works until I start using the drop down lists. Most are empty with nothing to choose. Was there anything else I needed to export or modify in the original to make it work with your form?
 
Upvote 0
I have taken the form you created and exported it to my live data which was identical to what I sent you in the copy you worked with. The form works until I start using the drop down lists. Most are empty with nothing to choose. Was there anything else I needed to export or modify in the original to make it work with your form?
 
Upvote 0
I have taken the form you created and exported it to my live data which was identical to what I sent you in the copy you worked with. The form works until I start using the drop down lists. Most are empty with nothing to choose. Was there anything else I needed to export or modify in the original to make it work with your form?

You have to fill out the "data" sheet
 
Upvote 0
My data sheet is there in the original just as it was in the original. I am not sure what you mean by "fill out".
 
Upvote 0
I think I just understood. Your version of the data sheet was much set up to match the column labels whereas mine was all over the place. I will make adjustments and get back with you.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top