excel| Create I'm using DAO. Import data from the database into the Excel object you created
Sub tabletoexcel (ntablename As Integer, Ntabledata () As Integer)
Frmquartertable.mousepointer = 11
On Error Resume Next
Dim I as Integer
Dim J as Integer
Dim Stryear as String
Dim Strseason as String
Dim xlapp, Xlbook, xlsheet as Object
On Error Resume Next
Set xlapp = CreateObject ("Excel.Application")
Set xlbook = XlApp.Workbooks.Add
Set xlsheet1 = xlbook.worksheets (1)
XlApp.activewindow.tabratio = 0.9
Select Case Ntablename
Case 11:
Xlbook.worksheets ("Sheet1"). Select
XlApp.activesheet.range ("B1:h1"). Select
XLAPP.ACTIVECELL.FORMULAR1C1 = "Table 1-1"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.