看板 Visual_Basic 關於我們 聯絡資訊
請問一下, 用VBA製作圖表的時候, 有辦法「一氣呵成」嗎? 目前我的狀況是, 我選取一個二維的數據, 並且要把他變成「曲面圖」, 我的寫法是這樣的: Range(A5,AZ60).Select (這範圍不是實際狀況..實際是一堆變數和運算,太長了就不列了) ActiveSheet.Shapes.AddChart.Select With ActiveChart .ChartType = xlSurfaceTopViewWireframe .Axes(xlValue).MajorUnit = 50 End With 可是這樣的時候, 他會先把選取的範圍中的數值變成長條圖,顯現出來, 之後再變成曲面圖... 雖然說最後還是出現我想要的結果, 但是由於數據很多, 先變成長條圖之後再轉換,中間會頓一下,頓很久... 非常不順暢.... 不知道有沒有辦法在一開始時,就以曲面圖的方式呈現, 這樣的話,就不會頓一下頓很久了QQ -- "Every kid who has dreamed of being a baseball player has stood in his front yard with a bat and said to himself, "Bottom of the ninth, Game 7 of the World Series, the bases are loaded," and then envisioned hitting a home run to win the game. My job is to shatter that dream." By Huston Street -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.202.55.129