• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Userform to Search/edit and overwrite an existing dataentry.

prasanna

Member
My Dear Experts, Good evening,

I've tried to make userforms for a succession plan office project.

The information is shown in textboxes and I expect the changes made in those textboxes will overwrite the existing initially entered information in the "Sheet1"; but that's not happening.
I also wanted to have a combobox with just the company name to filter/dropdown.
The template is attached herewith.

Please do the needful.

Prasanna
 

Attachments

  • SampleSearch.xlsm
    19.8 KB · Views: 29
Hi prasanna, and welcome to the forum! :awesome:

Since you want to be able to edit the source data, and be able to filter, I'd suggest using the built-in data form. To access, you can use this short macro.
Code:
Sub BasicForm()
Range("A1").Select
ActiveSheet.ShowDataForm
End Sub

In Office 2010, form looks like this:
upload_2016-1-12_15-16-40.png

You can edit the data in real time, create New records or Delete, and apply basic criteria (such as 'Sony' for company name).
 
Neat! Never knew about this functionality.

Much easier than using custom Userform for table editing.
 
Hi Luke & Others,

I think in Excel 2010 you can add the shortcut to Quick Access Toolbar for this form. So the file need not be saved as .xlsm. Just click inside any cell in table and click the form button.

upload_2016-1-13_10-30-42.png

The same can be added by customizing QATB and select All commands and than select Forms.

Regards,
 
Back
Top