How do I make the message that appears at the conclusion of a macro display a value that is sourced from another list. For example, you can use a drop down list to select your location. The Macro copies the value to several places around the workbook and then pops up a message that says "You changed your location". I would love it to say "You changed your location to 'VALUE'" where as "value" would be the location you selected.
Any way to do this? I imagine it is something along the lines of:
Or something like that....MsgBox "You changed your location to 'A1'"
msgbox "You changed your location to '" & combobox1.Value & "'",vbokonly
Is your code running too slowly?
Does your workbook or database have a bunch of duplicate pieces of data?
Have a look at this article to learn the best ways to set up your projects.
It will save both time and effort in the long run!
Dave
Thanks for the quick reply! Ummm....apparently I'm not as smart as I though...How do I modify the code you so generously shared to make it work. The cell that contains the value I want displayed is "J1".
So would that make it look like this?:
msgbox "You changed your location to '" & combobox1.J1 & "'",vbokonly
msgbox "You changed your location to '" & cells(1,"J").value & "'",vbokonly
Is your code running too slowly?
Does your workbook or database have a bunch of duplicate pieces of data?
Have a look at this article to learn the best ways to set up your projects.
It will save both time and effort in the long run!
Dave
Genius, thank you sir!
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks