
Highlighting a Range on a Userform
Sorry, maybe this will be a bit more clear. When the
userform is shown, the textbox(es) are populated with the
values specified by the ControlSource values. When this
happens, I would like to have the first textbox value on
the userform highlighted so that the user can simply type
in the new data without having to select and delete the
existing data or simply press tab to advance to the next
field and keep the default value from the ControlSource.
When the Tab key is pressed now, the next textbox is
activated and highlighted as I would prefer. It's just
the first textbox that does not come in highlighted.
Thanks,
Chris
Quote:
>-----Original Message-----
>> bring the ControlSource value up
>To where? The textbox?
>> have the active cell highlighted
>You want the user to edit in the ControlSource cell and
not in the textbox?
>Bob Kilmer
>> I am using a Userform with multiple textboxes to collect
>> information that is assigned to named ranges on an Excel
>> spreadsheet. The ControlSource is set to the Range on
the
>> worksheet for the userform default value. I would like
to
>> know how to bring the ControlSource value up and have
the
>> active cell highlighted so that the user can simply type
>> in the new data without deleting the existing text
>> (similar to a double-click of the mouse on this range).
>> The tab key will advance the cursor to the next textbox
>> and highlight the data but I am not sure how to have the
>> first textbox come up that way.
>> Thanks,
>> Chris
>.