This sample demonstrates how to append data from a database to an Excel Spreadsheet using Office Automation to find the next empty row in the spreadsheet.
The overall process:
1) Define Access and Excel object variables
2) Open Excel sheet as an Excel Object
3) Find the last row of data
4) Write data from Access query to Spreadsheet
5) Save and close spreadsheet
Look in the "basExport" module for the relevant code.
Note: This requires a spreadsheet called "ExportSpreadsheet.xls" (included with the sample) exist in the same directory as the application. Also requires references set to DAO 3.6 and Excel
Download Access 2000-2003 Version: AppendValuesToExcel.zip
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Trainer: Don Jones Videos: 20 Time: 6 hrs This series shows you how to build Web applications for Windows, using version 4 of the .NET Fra...
-
انتهت مباراة ريال مدريد ضد أوساسونا بالتعادل الإيجابي بنتيجة 1-1 في المباراة التي أقيمت بينهما مساء الأحد على ملعب "سانتياجو برنابيو...
-
تحدث الهولندي تين هاج، المدير الفني لفريق مانشستر يونايتد، على واقعة غضب البرتغالي كريستيانو رونالدو من عدم مشاركته في مباراة توتنهام الت...
-
By Cyndi Snyder Stackpole, MBA, PMP 26 Jan2009 A lot of people are wondering what is going to change with the PMBOK® Guide: Fourth Edit...
-
Product Description Fast answers to frequently asked questions Excel 2007 essentials at your fingertips! If you like your answers quic...
-
كشفت دراسة أجرتها مجموعة هاودن للتأمين أن الإصابات التي تعرض لها لاعبي يوفنتوس الموسم الماضي كلفت النادي أكثر من 20 مليون يورو، ووفقاً للت...
-
يلتقى فريق ألانيا سبور التركي المحترف ضمن صفوفه المهاجم المصرى أحمد حسن كوكا، مع ضيفه غازي عنتاب مساء اليوم السبت في الدوري التركي بالموسم...
-
To Order click here only 10 USD Pro InfoPath 2007 is an excellent book for developers trying to learn the scope and range of application...
-
SWOT Analysis A scan of the internal and external environment is an important part of the strategic planning process. Environmental...
No comments:
Post a Comment