textbox help

hail11

Board Regular
Joined
May 3, 2007
Messages
199
Private Sub TextBox20_Change()
Sheets("Sheet1").Range ("b28")
End Sub

i want textbox20 to = cell b28 this isn't working?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
how do i get it so it auto populates when that vb screen comes up so i don't have to click on it. Also how can i change the number if it is wrong in the textbox
 
Upvote 0
In your ThisWorkbook code put
Code:
Private Sub Workbook_Open()
  Sheet1.activate
  Sheet1.TextBox20 = Range("b28")
End Sub
Did you really mean "that VB screen?"
 
Upvote 0
Private Sub Workbook_Open()
Sheet1.activate
Sheet1.TextBox20 = Range("b28")
End Sub

i am using a userform1

so whenever it is open i need to have the textboxes filled in so i can see if they are correct

this isn't pulling it up............
 
Upvote 0
would it be like this then?


Private Sub UserForm_open()
sheet1.Activate
j.TextBox20.Value = ActiveSheet.Range("a1")
j.Show
End Sub

when i open it nuthing comes up
 
Upvote 0

Forum statistics

Threads
1,214,534
Messages
6,120,086
Members
448,944
Latest member
sharmarick

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