Display Cell vals in a Textbox

Steve-O

New Member
Joined
May 5, 2002
Messages
2
I have a workbook that goes and does a match in a different workbook based on entered cell info. I then want to grab the cell contents and somehow display them in the first workbook, perhaps in a textbox. I don't have a userform setup, and I'd rather not if I don't have to. I tried running a macro and copying and pasting the cell contents into a drawn textbox(See Below) but I can't figure out how to do it with code.

ActiveSheet.Shapes("Text Box 1").Select
Selection.Characters.Text = "123456"

I know that I can't use ActiveSheet.Shapes("Text Box 1").print, because it throws up an error that this object doesn't support that function.

What's the easiest way to create a list like this? I'm going to drop between 10 and 20 values into it, and if possible, I'd like it to only appear when I ask for it.

Thanks!!
Steve-O
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Try creating a text box and linking it to a cell. To do so select the text box, then enter =a1 in the formula bar. In cell a1 you can use formulas to obtain results from your lookups, match, etc. In your code, you can make the text box visible or invisible with the command: ActiveSheet.Shapes("Text Box 1").visible = true/false.
 
Upvote 0
So I tried something new, and I have a userform with a combobox and a textbox.

I figured how to drop the values, but now what's the best way to Drop to the next line and add Another line with new info? If I just use
UserForm1.ComboBox1.Text = "Tool 1 is located "

..it just replaces the text in there.

How do I get it to Append to the info already in the combo/text box?

Thanks again!
-Steve-O
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

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