Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default ???Set cursor away from combobox

I have created a userform with a combo box that will popup on file opened.

I would like the curosr automaticall placed on the excel worksheet (eg CELL
A12) instead of the combo box.

Woudl appreciate some wise advice on how to do it.
--
Thanks a million for your time and expert advice :-)
Jaylin
*****Jaylin Message ended*******
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default ???Set cursor away from combobox

Hi Jaylin

Do you mean cell pointer not mouse cursor?
Excel VBA is not able to move the mouse cursor on the specific
location.
But API functions may be able to do that.
I can't imagine on it.
Please google mouse-related C API functions

Best regards
sjoo

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default ???Set cursor away from combobox

Set the showmodal property of the UDF to be false - this allows the form to
remain on the screen whilst focus can be returned to the worksheet (i.e. the
form does not have to be closed to allow the cursor/user to work on the
worksheet).

Then, in the workbook_open module - after you've loaded the form - set the
cell range back to a cell on the sheet

e.g.

private sub Workbook_open
yourform.show <-- with property set to modeless
cells(1,1).select
end sub

Another way to do this is to simply use the vbModeless switch on the
form.show line
e.g.
yourform.show vbModeless

HTH
Giles


"Jaylin" wrote:

I have created a userform with a combo box that will popup on file opened.

I would like the curosr automaticall placed on the excel worksheet (eg CELL
A12) instead of the combo box.

Woudl appreciate some wise advice on how to do it.
--
Thanks a million for your time and expert advice :-)
Jaylin
*****Jaylin Message ended*******

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My cursor always in selection mode,wat about other cursor option Deepu[_2_] Excel Discussion (Misc queries) 1 March 2nd 10 01:05 AM
move cursor on one sheet moves cursor on all sheets tdworden Excel Discussion (Misc queries) 2 July 22nd 07 10:50 PM
why am I getting a 3 d cross cursor instead of a pointer cursor? 3 d cross cursor - turn it off Excel Discussion (Misc queries) 1 April 12th 06 12:38 AM
Can I change the "white cross" cursor in Excel to another cursor? KFEagle Excel Discussion (Misc queries) 1 May 3rd 05 08:01 PM
How Do I Load A ComboBox RowSource From The Results Of Another ComboBox Minitman[_4_] Excel Programming 3 October 26th 04 07:58 PM


All times are GMT +1. The time now is 09:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"