Assistance with inserting data validation comments

ABabeNChrist
SilverLounger
Posts: 1868
Joined: 25 Jan 2010, 14:00
Location: Conroe, Texas

Re: Assistance with inserting data validation comments

Post by ABabeNChrist »

I was wondering if I could use this same userform to modify and save an existing comment and/or create a new comment and have it added to the exiting library for that selected dropdown.

I’ve found there are times when I modify or create a new comment that better suits my needs and it would be so much easier with this userform

User avatar
HansV
Administrator
Posts: 78483
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Assistance with inserting data validation comments

Post by HansV »

Is the workbook you last attached (about half a year ago) still up-to-date as far as the structure is concerned?
Best wishes,
Hans

ABabeNChrist
SilverLounger
Posts: 1868
Joined: 25 Jan 2010, 14:00
Location: Conroe, Texas

Re: Assistance with inserting data validation comments

Post by ABabeNChrist »

Yes same as post 162375

User avatar
HansV
Administrator
Posts: 78483
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Assistance with inserting data validation comments

Post by HansV »

OK, I'll have a look in a couple of hours.
Best wishes,
Hans

User avatar
HansV
Administrator
Posts: 78483
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Assistance with inserting data validation comments

Post by HansV »

I have added two new buttons to the userform: "New Comment" and "Edit Comment".
Book1_edit.xlsm
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

ABabeNChrist
SilverLounger
Posts: 1868
Joined: 25 Jan 2010, 14:00
Location: Conroe, Texas

Re: Assistance with inserting data validation comments

Post by ABabeNChrist »

I like it, it works great. There is one thing when a new or edit comment is added it goes to the bottom of list. Can they be added alphabetized

User avatar
HansV
Administrator
Posts: 78483
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Assistance with inserting data validation comments

Post by HansV »

Here you go.
Book1_edit.xlsm
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

ABabeNChrist
SilverLounger
Posts: 1868
Joined: 25 Jan 2010, 14:00
Location: Conroe, Texas

Re: Assistance with inserting data validation comments

Post by ABabeNChrist »

I like it :clapping: :grin: , thanks so very much Hans :cheers:

ABabeNChrist
SilverLounger
Posts: 1868
Joined: 25 Jan 2010, 14:00
Location: Conroe, Texas

Re: Assistance with inserting data validation comments

Post by ABabeNChrist »

I have another question, can the InputBox function be adjusted so that the input bar is larger so as to view complete comment that is entered

User avatar
HansV
Administrator
Posts: 78483
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Assistance with inserting data validation comments

Post by HansV »

No, the InputBox function has a fixed size.
You could use a text box on the userform instead.
Best wishes,
Hans

ABabeNChrist
SilverLounger
Posts: 1868
Joined: 25 Jan 2010, 14:00
Location: Conroe, Texas

Re: Assistance with inserting data validation comments

Post by ABabeNChrist »

I searched around before I posted and didn’t find any reference and thought I’d confirm here. Thank you Hans
I think your suggestion makes better since

ABabeNChrist
SilverLounger
Posts: 1868
Joined: 25 Jan 2010, 14:00
Location: Conroe, Texas

Re: Assistance with inserting data validation comments

Post by ABabeNChrist »

I made some changes as to your suggestion. I added a separate userform/textbox/listbox for modifying an existing comment and adding a new comment. I believe I did it correctly.
I have attached a sample workbook
Book2.xlsm
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78483
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Assistance with inserting data validation comments

Post by HansV »

As far as I can tell, that works well! :thumbup:
Best wishes,
Hans