View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Carim[_3_] Carim[_3_] is offline
external usenet poster
 
Posts: 137
Default Need code for transfering cell value to text box.

Matt,

Below is the code which will do the work ...

Option Explicit
Private Sub TextBox1_Change()
'if Cell F5 contains the final calculation
TextBox1.Text = Range("F5").Value
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Call TextBox1_Change
End Sub

HTH
Carim