VBA textbox loading value from cell

tfnduarte

New Member
Joined
Sep 14, 2022
Messages
10
Office Version
  1. 2016
Platform
  1. Windows
hi,
i'm starting programming on vba alone.

i'm trying to show on textbox 10 a value from a cell. That should happen when i input a value on textbox 1, but if it's complicate it can be load when the form is open.
The value showed on textbox10 i don't want it to change with keyboard so I locked it in properties.
I've tried many things and happens nothing.
the userform = Preços

VBA Code:
    Private Sub TextBox1_change()
     Folha2.Range("f4").Value = TextBox1
    
    End Sub
    
    Private Sub TextBox10_load_textbox1()
    
       Me.TextBox10.Text = Folha2.Range(g4).Value
    End Sub

VBA Code:
Private Sub Preços_initialize()
    Me.TextBox10.Text = Folha2.Range(g4).Value
End Sub

Anyone can help? thanks.
 

Attachments

  • duvida1.png
    duvida1.png
    14.5 KB · Views: 26
So i solve it it's because of the size of textbox , in i icrease te size it shows everything


1663163036804.png



Thank You very much
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,223,630
Messages
6,173,454
Members
452,514
Latest member
cjkelly15

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