Displaying Data From Data into Excel Worksheet
Displaying the data from the database into Excel.
When you have accomplished this, you need to display the data within your worksheet.
Add the following to your function to display the data within your Worksheet.
Dim ws As Worksheet
Dim count As Long
Set ws = ThisWorkbook.Worksheets(1) 'The number is the number of the worksheet in Excel. If you have multiple worksheets, then you will adjust the number accordingly.
You can input data into your Excel worksheet like this:

0 comments:
Post a Comment