TAILIEUCHUNG - Mastering Excel 2003 Programming with VBA phần 5

Bạn có thể sử dụng tài sản Offset của đối tượng Range để đề cập đến phạm vi trên một bảng tính dựa trên, hoặc liên quan đến một phạm vi. Tài sản này cung cấp cho bạn rất nhiều tính linh hoạt cho di chuyển xung quanh một bảng tính. Bù đắp là cho Navigation tương đối | chart manipulation 225 With chrt use chart wizard to populate format empty chart .Chartwizard _ Source rgChartData _ Gallery xlColumn _ Format 1 _ PlotBy xlColumns _ CategoryLabels 1 _ SeriesLabels 1 _ HasLegend True _ Title Gross Domestic Product Version I _ CategoryTitle Year _ ValueTitle GDP in billions of End With Set chrt Nothing Set rgChartData Nothing Set ws Nothing End Sub You probably already know this but a chart can assume two forms it can be created as a chart sheet or it can be embedded within a worksheet. One thing that is kind of odd regarding the process of creating a chart is that you don t have any control over what kind of chart is created when you use . This statement creates an empty chart sheet. This is fine and dandy if you want a chart sheet but what if you want to embed it into a worksheet That is what the Location method is for. Where Name The Where parameter can be either xlLocationNewSheet creates a chart sheet xlLocationAsObject embeds in a worksheet or xlLocationAutomatic. The Name parameter is the name of the new chart sheet if you use xlLocationNewSheet. If you use xlLocationAsObject the Name parameter should be the name of the worksheet in which you want to embed the chart. Another somewhat peculiar aspect of creating a chart is that Location creates a new Chart object from a programmatic perspective. If you are using a Chart object variable to refer to a chart you need to reset it when you use Location. That s the reason for the following statement in the CreateExampleChartVersionI procedure. embed chart in worksheet - this creates a new object Set chrt xlLocationAsObject Now that you have the chart where you want it it is time to employ the ChartWizard method to give the chart some personality. As you can see in this example the ChartWizard method has a lot of parameters and you ll probably use most of them. Note however that all of the parameters are optional. .

TÀI LIỆU MỚI ĐĂNG
31    248    0    25-04-2024
19    228    0    25-04-2024
34    212    1    25-04-2024
46    187    0    25-04-2024
10    156    0    25-04-2024
20    198    2    25-04-2024
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.