Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Switch focus to inactive userform

Hello,

I am having difficulty with 2 modeless user forms. They are both
displayed at the same time and I need to switch the focus from one to
the other through VBA. It doesn't work to just use the setfocus
property of one of my controls on the other form to make it active.
Any thoughts?

Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 214
Default Switch focus to inactive userform

Hi GrahamUNC,
AppActivate "Title caption form you want activate"
MP

"GrahamUNC" a écrit dans le message de news:
...
Hello,

I am having difficulty with 2 modeless user forms. They are both
displayed at the same time and I need to switch the focus from one to
the other through VBA. It doesn't work to just use the setfocus
property of one of my controls on the other form to make it active.
Any thoughts?

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Switch focus to inactive userform

Great! It works perfectly. That was driving me crazy for the longest
time.

Michel Pierron wrote:
Hi GrahamUNC,
AppActivate "Title caption form you want activate"
MP

"GrahamUNC" a écrit dans le message de news:
...
Hello,

I am having difficulty with 2 modeless user forms. They are both
displayed at the same time and I need to switch the focus from one

to
the other through VBA. It doesn't work to just use the setfocus
property of one of my controls on the other form to make it active.
Any thoughts?

Thanks in advance.


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
Object on userform can't get focus Jos Vens[_2_] Excel Programming 3 February 28th 05 11:50 PM
How do I switch focus from a modeless user form back to the excel. Yoam69 Excel Programming 7 December 7th 04 07:26 PM
Show userform without it taking focus? leah Excel Programming 2 August 10th 04 07:07 PM
Focus on Control before UserForm(s) pop up Bob Phillips[_6_] Excel Programming 0 May 5th 04 04:03 PM
UserForm Loss Focus Orlando Magalhães Filho Excel Programming 2 September 5th 03 04:47 AM


All times are GMT +1. The time now is 08:20 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"