![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 10
|
The opposite of this is easy to do, using
Code:
Object.CodePage Code:
CodePage.Parent The only way I can think of is by brute force... Code:
For Each |
|
|
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi Bruce
What is a "CodePage" ? Is this a variable you have assigned? >Object.CodePage What is the Object? |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Hi Bruce ....do you mean CodeName ??
eg MsgBox Worksheets(1).CodeName Ivan |
|
|
|
|
|
#4 |
|
New Member
Join Date: Feb 2002
Posts: 10
|
Dave, Ivan
Object has the usual VBA meaning. In this case it could be a workbook, sheet or activeX control, CodePage is is the VBA script associated with the object. All event triggered code is put here by default. eg Private Sub Workbook_WindowDeactivate(ByVal Wn As Excel.Window) and no, CodeName is the "code name" associated with an object, that can be refered to directly in VBA code, without using collection syntax eg Msgbox Worksheets("Data") 'using collection syntax Msgbox Sheet1 'using CodeName The helpfiles in Excel 2000 are a bit sketchy with regards to VBE objects, Excel97 even more so. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|