Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Referring to a frame with a frame

I have created a user form that has one large frame in it (MonthFrame)...
inside the frame are 35 other frames (DayFrame1-35)... in code I want to
change the name of the day frame... how do I refer to that frame with a frame?

Me.controls(nameofframe).caption dpesn;t work...

Any help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Referring to a frame with a frame

You can refer directly to a nested frame.

Debug.Print UserForm1.DayFrame1.Caption

Or, you can go through the Controls method:

Debug.Print UserForm1.MonthFrame.Controls("DayFrame1").Caption


Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Mon, 27 Oct 2008 13:52:08 -0700, jayklmno
wrote:

I have created a user form that has one large frame in it (MonthFrame)...
inside the frame are 35 other frames (DayFrame1-35)... in code I want to
change the name of the day frame... how do I refer to that frame with a frame?

Me.controls(nameofframe).caption dpesn;t work...

Any help?

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
Frame ranswrt Excel Programming 2 June 9th 08 05:10 PM
about frame and screen shot of a frame Monte0682 Excel Programming 1 May 11th 07 05:48 AM
Frame Nick London Excel Programming 1 July 4th 06 03:39 PM
frame Nick London Excel Discussion (Misc queries) 0 July 4th 06 01:17 PM
How to attach legend frame to chart frame? holg3r Charts and Charting in Excel 2 July 7th 05 11:41 PM


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