Change document name and URL with Listbox and textbox.

molesy01

New Member
Joined
Dec 23, 2012
Messages
38
Hi

Userform1
Textbox 1
Textbox 2
Textbox 3
Textbox 4
Listbox 1
Command button (change)
Sheet 1

I have a userform with a listbox and 4 x Textbox.

I need to list items in Listbox 1 from column A & B. A=Document & B = URL. from Sheet 1.

I need to be able to have the list of documents in listbox from sheet 1 cells ("A") this list is not definitive could be 10 or more, same with URL in ("B")

When you chose a document in the listbox i need the current document name to populate in Textbox 1 and URL in Textbox 2.

Textbox 1 = document name in A1
Textbox 2 = URL in B1

Textbox 3 = New document name
Textbox 4 = New URL.

I then need to change the document name in Textbox 1 and URL in Textbox 2. by typing in Textbox 3, and cut and paste new URL in Textbox 4, when i hit the change button i need the new document name and URL to replace the existing cells in Sheet 1.

Hope someone can help.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,214,846
Messages
6,121,905
Members
449,054
Latest member
luca142

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