VBA中“sheet”的属性都有哪些?将“sheet1”的名称改为“益智”用什么属性?

要在worksheets中新建一个sheet,并定义一个新的名字,VBA代码怎么写?

sheet对象有多个属性,其中名称属性为sheet.name
修改名称时,只需将新的名称赋值给sheet.name即可:sheet.name="益智"
新建sheet并命令的话,用add方法并赋值name属性:
set new_sheet = worksheets.add
new_sheet.name = "益智"

sheet对象的全部属性:
Application
AutoFilter
AutoFilterMode
Cells
CircularReference
CodeName
Columns
Comments
ConsolidationFunction
ConsolidationOptions
ConsolidationSources
Creator
CustomProperties
DisplayPageBreaks
DisplayRightToLeft
EnableAutoFilter
EnableCalculation
EnableOutlining
EnablePivotTable
EnableSelection
FilterMode
HPageBreaks
Hyperlinks
Index
ListObjects
MailEnvelope
Name
Names
Next
Outline
PageSetup
Parent
Previous
ProtectContents
ProtectDrawingObjects
Protection
ProtectionMode
ProtectScenarios
QueryTables
Range
Rows
Scripts
ScrollArea
Shapes
SmartTags
StandardHeight
StandardWidth
Tab
TransitionExpEval
TransitionFormEntry
Type
UsedRange
Visible
VPageBreaks
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-03-22
sheet的属性很多,可以自己去vba下看,改名如下:

Sheet1.Name = "益智"
相似回答