各位大大 現在是這樣
每當我按一下 產生新圖案的時後,在名稱上 excel 自動命名為 圖表1, 下次再呼叫的時後會自動變成圖表2
能否在呼叫圖表的時後,就定義他的名字呢?
我試過下列程式碼 都不行
=================
Private Sub CommandButton1_Click()
With ActiveSheet.ChartObjects.Add _
(Left:=100, Width:=375, Top:=75, Height:=225)
With .Chart
.ChartType = xlXYScatterLines
.SetSourceData Source:=Sheets("Sheet1").Range("F6:J7")
.Parent.Name = "Name of this Chart"
End With
End With
End Sub
==========================
charts.add
ActiveSheet.Chart.name="test"
===========================
Charts.name="test"
=============
都不行, 請好心人士幫忙解答 謝謝作者: GBKEE 時間: 2014-6-19 11:12
pos=15
for index 3 to 7
for indexb = 6 to 10
dim second as double
second=val(cells(index + 1, indexb).value)
dim text as string
text=cells(index,indexb).value
call drwa(second,text,pos)
next
next
end sub
Public sub------------
activesheet.shapes.addshape(msoshaperectangle,shape_left,shape_top,sec*5.1,30).select
selection.name="1A"作者: kerochen 時間: 2015-9-28 08:50