View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default Initialize textbox values

Because you are tied to a worksheet, that is where it is getting the values
from.

Why not just change the worksheet cells directly, rather than the
textbox(es)?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"phreud " wrote in message
...
Hi,

I want to initialize all my textboxes when my userform is showed. They
are all connected to the worksheet with controlsource.

I tried using 'Me.txtSomebox.Value = 14' i the Userform_Initialize()
event, but it doesn't change the value. If I write to the cell (range)
in the worksheet directly, it works. Why is this? It's alot clearer if
I can set the value using the textbox name directly.

Thanks in advance

/ phreud


---
Message posted from http://www.ExcelForum.com/