userform and named cell

buzz71023

Active Member
Joined
May 29, 2011
Messages
295
Office Version
  1. 2016
Platform
  1. Windows
is there a way to make a textbox iput data to a named data?

I cant seem to figure it out.

What I have to far:

Private Sub CommandButton1_Click()
Dim iRow As Long
Dim WS As Worksheet
Set WS = Worksheets("DataSheet")
'copy the data to the database
WS.Cells(3, 15).Value = Me.TextBox1.Value

End Sub

Cell O3/(3,15) is named Thickness. I would like for textbox1 to equal Thickness
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
No that didnt work. I tried retyping it a couple of differnet times just to make sure I got it right and tried copy and paste it didnt work. I had actually what you did when I tried but forgot to but the .Value in the code.
 
Upvote 0
I got it thanks for the help. dont think i would have figured it out so quick without your help. it was

Range("FTIRThickness").Value = Me.TextBox1.Value

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,547
Members
449,089
Latest member
davidcom

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