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

On a form I have a multipage with a number of pages and controls.

I cannot get ActiveControl.Name to return the control with focus as this
only returns "MultiPage1". MultiPage1.Page1.ActiveControl.Name has no effect.

What should the correct syntax be to address controls on Page1 of MultiPage1 ?

Geoff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default ActiveControl

Try

MsgBox Me.MultiPage1.SelectedItem.ActiveControl.Name


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Geoff" wrote in message
...
On a form I have a multipage with a number of pages and
controls.

I cannot get ActiveControl.Name to return the control with
focus as this
only returns "MultiPage1". MultiPage1.Page1.ActiveControl.Name
has no effect.

What should the correct syntax be to address controls on Page1
of MultiPage1 ?

Geoff



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 371
Default ActiveControl

Thanks for that.

Geoff

"Chip Pearson" wrote:

Try

MsgBox Me.MultiPage1.SelectedItem.ActiveControl.Name


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Geoff" wrote in message
...
On a form I have a multipage with a number of pages and
controls.

I cannot get ActiveControl.Name to return the control with
focus as this
only returns "MultiPage1". MultiPage1.Page1.ActiveControl.Name
has no effect.

What should the correct syntax be to address controls on Page1
of MultiPage1 ?

Geoff




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
ActiveControl problem DAACKM Excel Discussion (Misc queries) 3 September 9th 08 01:15 AM
Calendar Control & ActiveControl Marcus B Excel Programming 0 March 15th 06 10:08 AM
userform1.activecontrol.name Italian Job Excel Programming 3 November 14th 03 12:43 PM


All times are GMT +1. The time now is 10:27 AM.

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"