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: 17
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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,622
Messages
6,120,572
Members
448,972
Latest member
Shantanu2024

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