activesheet与worksheet()区别是什么啊?1.在做VBA编程.可是关于“ActiveSheet”与“worksheet("XXX")”的区别不是很清楚.请帮忙区分一下二者的区别.2.向指定在“Example001”中添加线段,如何修改下面语句
activesheet与worksheet()区别是什么啊?1.在做VBA编程.可是关于“ActiveSheet”与“worksheet("XXX")”的区别不是很清楚.请帮忙区分一下二者的区别.2.向指定在“Example001”中添加线段,如何修改下面语句
activesheet与worksheet()区别是什么啊?
1.在做VBA编程.可是关于“ActiveSheet”与“worksheet("XXX")”的区别不是很清楚.请帮忙区分一下二者的区别.
2.向指定在“Example001”中添加线段,如何修改下面语句呢?
例子:想在Excel中的“Example001”Sheet添加线段.
通过宏录制了语句如下,如何把ActiveSheet改为worksheet(“Example001”):
ActiveSheet.Shapes.AddLine(98.25,195.75,354#,195.75).Select
Selection.ShapeRange.Line.EndArrowheadStyle = msoArrowheadTriangle
Selection.ShapeRange.Line.EndArrowheadLength = msoArrowheadLengthMedium
Selection.ShapeRange.Line.EndArrowheadWidth = msoArrowheadWidthMedium
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 3#
Selection.ShapeRange.Line.DashStyle = msoLineRoundDot
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoTrue
Selection.ShapeRange.Line.ForeColor.SchemeColor = 10
Selection.ShapeRange.Line.BackColor.RGB = RGB(255,255,255)
Selection.ShapeRange.Line.BeginArrowheadLength = msoArrowheadLengthMedium
Selection.ShapeRange.Line.BeginArrowheadWidth = msoArrowheadWidthMedium
Selection.ShapeRange.Line.BeginArrowheadStyle = msoArrowheadNone
Selection.ShapeRange.Line.EndArrowheadLength = msoArrowheadLengthMedium
Selection.ShapeRange.Line.EndArrowheadWidth = msoArrowheadWidthMedium
Selection.ShapeRange.Line.EndArrowheadStyle = msoArrowheadTriangle
activesheet与worksheet()区别是什么啊?1.在做VBA编程.可是关于“ActiveSheet”与“worksheet("XXX")”的区别不是很清楚.请帮忙区分一下二者的区别.2.向指定在“Example001”中添加线段,如何修改下面语句
activesheet表示是当前活动的工作表,一般是手工点击了某个工作表标签,则该工作表就成为了活动工作表了,也可以在程序中通过Activate方法使某个工作表成为活动工作表,这个集合只包含一个工作表.比如
sheets(1).Activate或者worksheet("sheet1").Activate等语句,
而worksheet则是工作表的集合,包含了所有的工作表.