Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Modeless window

Hi,

Is it possible when you open a modeless window (userform) to give the focus
back to the sheet you were working in, without waiting for a click of the
user in the sheet.

This lines did not do the job:

Set vSheet = ActiveSheet
myForm.Show False
vSheet.Select

or

vSheet.Activate

Thanks
Jos Vens



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Modeless window

Hi Jens,

Try:

AppActivate Application.Caption

---
Regards,
Norman



"Jos Vens" wrote in message
...
Hi,

Is it possible when you open a modeless window (userform) to give the
focus back to the sheet you were working in, without waiting for a click
of the user in the sheet.

This lines did not do the job:

Set vSheet = ActiveSheet
myForm.Show False
vSheet.Select

or

vSheet.Activate

Thanks
Jos Vens





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Modeless window

Terrific! It works!

Thanks a lot
Jos


"Norman Jones" schreef in bericht
...
Hi Jens,

Try:

AppActivate Application.Caption

---
Regards,
Norman



"Jos Vens" wrote in message
...
Hi,

Is it possible when you open a modeless window (userform) to give the
focus back to the sheet you were working in, without waiting for a click
of the user in the sheet.

This lines did not do the job:

Set vSheet = ActiveSheet
myForm.Show False
vSheet.Select

or

vSheet.Activate

Thanks
Jos Vens







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Modeless window

Hi Jos,

Thanks for the feedback and apologies for mis-spelling your name!

---
Regards,
Norman



"Jos Vens" wrote in message
...
Terrific! It works!

Thanks a lot
Jos



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
The window opens in a smaller window not full sized window. Rachael Excel Discussion (Misc queries) 0 November 7th 06 09:04 PM
VB6 COM Add-In and Modeless Dialogbox BOELENS Didier Excel Programming 0 November 16th 04 10:35 AM
modeless userform jacob Excel Programming 1 May 4th 04 02:53 PM
Modeless Wait ? pikus Excel Programming 5 January 16th 04 07:43 PM
modeless userforms Don Cossitt Excel Programming 5 August 29th 03 08:39 PM


All times are GMT +1. The time now is 08:51 PM.

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

About Us

"It's about Microsoft Excel"