码迷,mamicode.com
首页 > 编程语言 > 详细

【Excel&VBA】VBA对象体系

时间:2014-10-11 12:51:25      阅读:644      评论:0      收藏:0      [点我收藏+]

标签:style   io   os   ar   for   sp   art   on   cti   

VBA对象体系

Application对象——代表整个Microsoft Excel应用程序
常用属性   常用方法 常用事件
ActiveCell  OnWindow  Calculate  SheetActive
ActiveSheet  Path  ConvertFormula  SheetDeactive
ActiveWindow  PathSeparator  OnKey  SheetFollowHyperlink 
ActiveWorkbook  Range  InputBox  WindowActive
AskToUpdateLinks  Rows   Run  WindowDeactivate
Assistant  ScreenUpdating    WorkbookActivate
AutoRecover  Selection     WorkbookBeforeClose
Caption  Sheets     WorkbookOpen
Cells  ShowWindowsInTaskbar    
Charts  StandardFont     
Columns  StandardFontSize     
CommandBars  StartupPath     
CommandUnderlines  StatusBar     
Creator  ThisCell     
Cursor  ThisWorkbook     
DefaultFilePath  UserControl     
DefaultSaveFormat  Workbooks     
DisplayFormulabar  Worksheets      
DisplayFullScreen  DisplayScrollBars     
Name  DisplayStatusBar     

 

Workbooks集合对象——当前打开的所有Workbook对象集合
 属性  方法
 Application  Add
 Count  Close
 Creator  Open
 Item  OpenDatabase
 Parent  OpenText

 

Workbook对象——Microsoft Excel工作簿
属性 方法 事件
Charts Active Activate
CodeName Close BeforeClose 
FullName Protect Open 
FullNameURLEncoded ProtectSharing SheetActivate 
HasPassword RunAutoMacros  SheetDeactivate 
InactiveListBorderVisible Save  SheetFollowHyperlink 
Password SaveAs  WindowActivate
Path SaveCopyAs  WindowDeactivate 
ProtectStructure Unprotect   
ProtectWindows Add   
ReadOnly    
Saved    
Sheets    
Windows    
Worksheets    
WritePassword    

 

Worksheets集合对象——指定的或活动工作簿中所有Worksheet对象的集合
属性 方法
Application Add
Count Copy
HPageBreaks Delete
Item FillAcrossSheets
Parent Move
Visible PrintOut
VPageBreaks Select

 

Worksheet对象——一张工作表
属性 方法 事件
Application Activate Activate
AutoFilter Calculate BeforeDoubleClick
AutoFilterMode ChartObjects BeforeRightClick
Cells CheckSpelling Calculate
CircularReference CircleInvalid Change
CodeName ClearArrows Deactivate
Columns Copy FollowHyperlink
EnableSelection Delete PivotTableUpdate
Hyperlinks Evaluate SelectionChange
Name Move  
ProtectContents OLEObjects  
Protection Paste  
ProtectScenarios PasteSpecial  
Range PivotTables  
Rows PivotTablesWizard  
ScrollArea SaveAs  
Type Select  
Visible Unprotect  

 

Range集合对象——某一单元格、某一行、某一列、某一选定区域
属性 方法 方法
AddIndent Activate  
Address AddComment FillUp
AddressLocal AdvancedFilter Find
AllowEdit ApplyNames FindNext
Application ApplyOutlineStyles FindPrevious
Areas AutoComplete FunctionWizard
Borders AutoFill GoalSeek
Cells AutoFilter Group
Characters AutoFit Insert
Column AutoFormat Justify
Columns AutoOutline Merge
ColumnWidth BorderAround NavigateArrow
Comment Calculate NoteText
Count CheckSpelling Parse
Creator Clear PasteSpecial
CurrentArray ClearComments PrintOut
CurrentRegion ClearContents PrintPreview
Dependents ClearFormats RemoveSubtotal
DirectDependents ClearNotes Replace
Font ClearOutline RowDifference
FormatConditions ClearDifferences Run
Formula Consolidate Select
FormulaArray Copy SetPhonetic
FormulaHidden CopyFromRecordset Show
FormulaLabel CopyPicture ShowDependents
FormulaLocal CreateNames ShowErrors
FormulaR1C1 CreatePublisher ShowPrecedents
FormulaR1C1Local Cut Sort
Height DataSeries SortSpecial
Name Delete Speak
Value DialogBox SpecialCells
Text Dirty SubscribeTo
Row EditionOptions Subtotal
Rows FillDown Table
Range FillLeft TextToColumns
RowHeight FillRight UnMerge

【Excel&VBA】VBA对象体系

标签:style   io   os   ar   for   sp   art   on   cti   

原文地址:http://www.cnblogs.com/night617/p/3999768.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!