Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I created combo boxes using it's properties, not vb programming, ie. using
the Control Toolbox and using the items properties. But how do I put the focus back on the spreadsheet so I can tab to the next column? Right now I am forced to click in the next column to regain focus on the sheet. -- Thanks - Ed |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I double clicked on the combobox (while in design mode) and pasted this in:
Option Explicit Private Sub ComboBox1_Change() ActiveCell.Activate End Sub It seemed to work ok. Ed wrote: I created combo boxes using it's properties, not vb programming, ie. using the Control Toolbox and using the items properties. But how do I put the focus back on the spreadsheet so I can tab to the next column? Right now I am forced to click in the next column to regain focus on the sheet. -- Thanks - Ed -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This kind of works. It brings the focus back to the sheet, but to the place
where I last had the cursor, which is not where I need it. If I have the combobox on A5, can I bring the curosr back to A5? -- Thanks - Ed "Dave Peterson" wrote: I double clicked on the combobox (while in design mode) and pasted this in: Option Explicit Private Sub ComboBox1_Change() ActiveCell.Activate End Sub It seemed to work ok. Ed wrote: I created combo boxes using it's properties, not vb programming, ie. using the Control Toolbox and using the items properties. But how do I put the focus back on the spreadsheet so I can tab to the next column? Right now I am forced to click in the next column to regain focus on the sheet. -- Thanks - Ed -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Oops.
You could use something like: Option Explicit Private Sub ComboBox1_Change() Me.ComboBox1.TopLeftCell.Offset(0, 5).Activate End Sub Do you really mean under the combobox? If yes, then drop that .offset(0,5). Ed wrote: This kind of works. It brings the focus back to the sheet, but to the place where I last had the cursor, which is not where I need it. If I have the combobox on A5, can I bring the curosr back to A5? -- Thanks - Ed "Dave Peterson" wrote: I double clicked on the combobox (while in design mode) and pasted this in: Option Explicit Private Sub ComboBox1_Change() ActiveCell.Activate End Sub It seemed to work ok. Ed wrote: I created combo boxes using it's properties, not vb programming, ie. using the Control Toolbox and using the items properties. But how do I put the focus back on the spreadsheet so I can tab to the next column? Right now I am forced to click in the next column to regain focus on the sheet. -- Thanks - Ed -- Dave Peterson -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I got it.
Thanks so much for your help! -- Thanks - Ed "Ed" wrote: This kind of works. It brings the focus back to the sheet, but to the place where I last had the cursor, which is not where I need it. If I have the combobox on A5, can I bring the curosr back to A5? -- Thanks - Ed "Dave Peterson" wrote: I double clicked on the combobox (while in design mode) and pasted this in: Option Explicit Private Sub ComboBox1_Change() ActiveCell.Activate End Sub It seemed to work ok. Ed wrote: I created combo boxes using it's properties, not vb programming, ie. using the Control Toolbox and using the items properties. But how do I put the focus back on the spreadsheet so I can tab to the next column? Right now I am forced to click in the next column to regain focus on the sheet. -- Thanks - Ed -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
fill combobox depending on selection from another combobox | Excel Discussion (Misc queries) | |||
OLE Combobox: Excel breaks down when it has focus | Excel Programming | |||
How Do I Load A ComboBox RowSource From The Results Of Another ComboBox | Excel Programming | |||
ComboBox and Set Focus | Excel Programming | |||
Focus on combobox | Excel Programming |