| | |
vb 6- exporting a database as an excel file in a tabular format(calendar form)
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)
0
#2 Oct 19th, 2007
I'm not sure what you mean by "calendar form". Since you haven't got any responses, maybe nobody else does either. I can tell you how to export a table to a spreadsheet so that the first row contains the field names of the table and each subsequent row contains the data in those fields. Is that what you want?
Hoppy
Hoppy
•
•
Join Date: Oct 2007
Posts: 4
Reputation:
Solved Threads: 0
Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)
0
#3 Oct 20th, 2007
Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)
0
#4 Oct 20th, 2007
In Excel, the rows are designated by numbers (1, 2, 3, etc.) and the columns are designated by letters("A", "B", "C", etc.).
Anyhow, here's what you need:
Call DoCmd.TransferSpreadsheet( _
acExport, _
acSpreadsheetTypeExcel97, _
"NameOfTableOrQuery", _
"MySpreadSheet.xls")
You can find documention on TransferSpreadSheet by doing a Google search on Transferspreadsheet method". Click on the first link that comes up.
Hope this helps,
Hoppy
Anyhow, here's what you need:
Call DoCmd.TransferSpreadsheet( _
acExport, _
acSpreadsheetTypeExcel97, _
"NameOfTableOrQuery", _
"MySpreadSheet.xls")
You can find documention on TransferSpreadSheet by doing a Google search on Transferspreadsheet method". Click on the first link that comes up.
Hope this helps,
Hoppy
•
•
Join Date: Nov 2006
Posts: 30
Reputation:
Solved Threads: 4
Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)
0
#5 Oct 20th, 2007
In Excel, you cannot change the value of A, B, C, .... which appear on top of each column.
www.easyprograming.com
Make Your Programing Easy
Make Your Programing Easy
Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)
0
#6 Oct 20th, 2007
•
•
•
•
In Excel, you cannot change the value of A, B, C, .... which appear on top of each column.
As it turns out, after having looked the documentation, the boolean parameter that determines that is ignored when exporting a table to a spreadsheet. The first row of the spreadsheet will always be the field names.
Hoppy
Last edited by hopalongcassidy; Oct 20th, 2007 at 2:22 pm.
•
•
Join Date: Nov 2006
Posts: 30
Reputation:
Solved Threads: 4
Re: vb 6- exporting a database as an excel file in a tabular format(calendar form)
0
#7 Oct 20th, 2007
You are right hopalongcassidy. I was just telling this to macy2323
www.easyprograming.com
Make Your Programing Easy
Make Your Programing Easy
![]() |
Similar Threads
- Manipulate Excel file using C++?? (C++)
- Get data out of excel file stored as an image (MS SQL)
- Server exception when opening a excel file in VB.net (VB.NET)
- opening excel file in visual basic 6 (Visual Basic 4 / 5 / 6)
- read excel records in asp not refreshing (is the excel file cached) (ASP)
- Reading Excel File using JAVA (Java)
- ASP - Excel to Database (ASP)
- Linking Excel up with VB6 (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Sending and Receiving SMS using a GSM modem
- Next Thread: time
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





