ملء تلقائي لنطاق ملف اكسل
Contents
[
Hide
]
أداء عملية ملء تلقائي في النطاق المحدد في اكسل
في اكسل، حدد نطاقًا، انقر بزر الماوس الأيمن في الزاوية السفلى اليمنى، واسحب “+” لملء البيانات تلقائيًا
ملء تلقائي للنطاقات باستخدام Aspose.Cells لمكتبة Excel في البايثون
يظهر المثال التالي كيفية القيام بعملية الملء التلقائي للنطاق، وهذا ملف العينة الذي يمكن تنزيله لاختبار هذه الميزة:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aspose.cells import AutoFillType, Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# Create a Workbook | |
workbook = Workbook("range_autofill.xlsx") | |
# Get Cells | |
cells = workbook.worksheets[0].cells | |
# Create Range | |
src = cells.create_range("C3:C4") | |
dest = cells.create_range("C5:C10") | |
# AutoFill | |
src.auto_fill(dest, AutoFillType.SERIES) | |
# Save the Workbook | |
workbook.save("range_autofill_result.xlsx") |