Copy textbox text to cell

jeffreydhe

New Member
Joined
Feb 10, 2009
Messages
3
I have searched high and low for the correct macro but have not found out how to do yet.

I have multiple surveys created in excel using textboxes. I am trying to create a summary datasheet by respondent. I know how to copy from a cell to my new sheet but can't figure out how to copy the text from a named textbox on the survey into a specific cell on another sheet.

Any help?
Thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi Jeffrey & Welcome to the Board!

Something likel:

Code:
Sheets("CopyToSheet").Range("A1").Value = Sheets("SurveySheet").TextBox1.Value
 
Upvote 0
Thanks Richard,
I have learned a lot surfing around here over the past weeks. I appreciate everyone's investment.

I tried this and I got a 438 error. Does the fact that the textbox is named make a difference?

Code:
Sub copytextbox()
Sheets("Temp").Range("E8").Value = Sheets("Phase I Survey").Q1N2.Value
End Sub
 
Upvote 0
The textboxes were originally created with a macro something like this.

Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="OneNote.File"><meta name="Generator" content="Microsoft OneNote 12">  [FONT=Calibri]Sub textbox()
With ActiveSheet
  .Shapes.AddTextbox msoTextOrientationHorizontal, .Cells(1, 2).Left, .Cells(1, 2).Top, .Cells(1, 2).Width, .Cells(1, 2).Height
End With
End Sub
[/FONT]

Then they were named manually.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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