Editable Text Based on Drop Down List

rxharp419

Board Regular
Joined
Mar 12, 2015
Messages
58
Hello,

I would like to have a drop-down list in A1.

Based on the value selected in the drop-down list in A1, I would like a specific parage of text to pop up in A2. I would like for this text in A2 to be editable so minor things can be changed as needed.

Is this possible?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
We need exact details.

Like:

If "George" is selected in "A1"

Enter "George is my friend" in "A2"
 
Upvote 0
Try this:
This is an auto sheet event script
Your Workbook must be Macro enabled
To install this code:
Right-click on the sheet tab
Select View Code from the pop-up context menu
Paste the code in the VBA edit window

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row = 1 And Target.Column = 1 Then Target.Offset(1, 0).Value = Target.Value
Target.Offset(1, 0).Select
End Sub
 
Upvote 0
Try this:
This is an auto sheet event script
Your Workbook must be Macro enabled
To install this code:
Right-click on the sheet tab
Select View Code from the pop-up context menu
Paste the code in the VBA edit window

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row = 1 And Target.Column = 1 Then Target.Offset(1, 0).Value = Target.Value
Target.Offset(1, 0).Select
End Sub

Hi and thank you!

I am not sure what i am doing wrong. But i have more information now that i have been messing around with this.

N1 is the cell i would like to refer to.

Basically, if N1 is "Estimate" than I want H1034 to populate with text i have in another sheet 'Wages & Rates'!J16.

If N1 is Lump Sum than I want H1034 to populate with text i have in another sheet 'Wages & Rates'!J17.

However, I would like the text to be editable as previously explained.

I think that should be all the info i can think of.
 
Upvote 0
Try this:
This is surely not what you asked for in your first post.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row = 1 And Target.Column = 14 Then
If Target.Value = "Estimate" Then Range("H1034").Value = Sheets("Wages & Rates").Range("J16").Value
If Target.Value = "Lump Sum" Then Range("H1034").Value = Sheets("Wages & Rates").Range("J17").Value
End If
End Sub
 
Upvote 0
Try this:
This is surely not what you asked for in your first post.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row = 1 And Target.Column = 14 Then
If Target.Value = "Estimate" Then Range("H1034").Value = Sheets("Wages & Rates").Range("J16").Value
If Target.Value = "Lump Sum" Then Range("H1034").Value = Sheets("Wages & Rates").Range("J17").Value
End If
End Sub


Hello, Thank you. It still will not work. It won't run, no error codes come up or anything, just a beep noise and it does not run for some reason.
 
Upvote 0
If you followed my instruction in my previous post. And put the script in the sheet like I said
And then you enter a value into range "N1" the script will run.
And you must enter "Estimate" or "Lump Sum" like you asked for.
You should be able to read the script and see what it does.
It does work for me.
Not sure why you want to enter a value in "N1" and have it up date a value in Range("H1034")
But that is what you asked for.

And the script must be put in the sheet where you plan to enter a value into Range "N1"

In your first post you said "A1" and "A2" so not sure why you are changing things.
Did my first post work?

And your sheet name must be exact. If you know English you should be able to read the script.
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,578
Members
449,174
Latest member
chandan4057

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