Macro to add Input chosen data to cell in column AB

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

The sheet is "Raw" and the range is AB21:AB300
i need a macro that is triggered when someone selects one of the following options from a dropdown box
Option 1
Option 2
Option 3
Option 4
Option 5


So heres what i need,

If some selects any ofther data from the dropdown box in the above range do nothing,
if they select one on the 5 options above then
open an input box Saying "Please Name This Section?"
and an input area to type a tile like "home"
then whatever they type get put into the cell they selected the dropdown in?

hope thats clear,
please help if you know how to do this

Thanks

Tony
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Some clarification questions.
If "Option 1", "Option 2", "Option 3", "Option 4", or "Option 5" is typed into a cell in the range AB21:AB300, you need an input box to pop up.
Is this what you mean?
And after the user types something into the input box, what action do you need with the value typed in?
 
Upvote 0
Hi,
Cell Range AB21:Ab300 are dropdown boxes that include the options of "Option 1", "Option 2", "Option 3", "Option 4", or "Option 5" as well as other option,
now the idea is because we dont want to have a huge list of all possible words we use the "Option" as blank titale and then create our own title

So if someone selects "Option 1" it says what name do you want to use and changes the cell that had "Option 1" to the wording they input into the input box?

hope thats clearer

thanks

Tony
 
Upvote 0
So if someone selects "Option 1" it says what name do you want to use and changes the cell that had "Option 1" to the wording they input into the input box?
Sorry, I'm still not clear about what you want the macro to do.
It sounds to me like you just want the macro to replace "Option 1" with what the user types into the input box.
This is no different from just when he or she types the value into the cell directly, so I guess this isn't what you're looking for.
Do you mean you have a list of replacement expressions for each option and when an option is selected, replace it with the wording that has previously been prepared?
But in that case, you don't need an input box.
Can you maybe explain what you want to do using images or something?
 
Upvote 0
Hi, I think I've made a hash of explaining this,

nevermind I'm going to try a different option for now,
thanks for trying to help
Tony
 
Upvote 0

Forum statistics

Threads
1,214,866
Messages
6,121,996
Members
449,060
Latest member
mtsheetz

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