Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I want locate cursor (on focus) in textbox1 (in sheet1) when i open workbook. Is there any code? Regards Mark |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming a textbox from the control toolbox toolbar:
Private Sub Workbook_Open() With ThisWorkbook.Worksheets("sheet1") .Activate .TextBox1.Activate End With End Sub Put this in the ThisWorkbook code module. -- Regards, Tom Ogilvy "Mark" wrote in message ... Hi all, I want locate cursor (on focus) in textbox1 (in sheet1) when i open workbook. Is there any code? Regards Mark |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Tom!
It's work. I wrote similar code, your and me code after open workbook activate texbox and I can write in textbox but at start i don't see it.. :) It has introduced me to error. Thanks Mark -----Original Message----- Assuming a textbox from the control toolbox toolbar: Private Sub Workbook_Open() With ThisWorkbook.Worksheets("sheet1") .Activate .TextBox1.Activate End With End Sub Put this in the ThisWorkbook code module. -- Regards, Tom Ogilvy "Mark" wrote in message ... Hi all, I want locate cursor (on focus) in textbox1 (in sheet1) when i open workbook. Is there any code? Regards Mark . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculate Textbox value based on another textbox value.doc | Excel Discussion (Misc queries) | |||
Calculate Textbox value based on another textbox value | Excel Discussion (Misc queries) | |||
textbox | Excel Discussion (Misc queries) | |||
Textbox | Excel Discussion (Misc queries) | |||
UserForm TextBox to ActiveSheet TextBox over 256 characters | Excel Programming |