Dim catalog As New ADOX.catalog
Dim tabfld As New ADOX.table
catalog.ActiveConnection = CurrentProject.Connection
Set tabfld = catalog.Tables("qtck_page1")
i = 1
Do While i <= tabfld.Columns.Count
excelwst.Cells(1, i) = tabfld.Columns(i - 1).Name
i = i + 1
Loop
将access里某个表的字段名称导出到excel表格里。
怎么导出到excel后字段顺序和access里表格字段顺序不一致,怎么才能保持导出后字段顺序一致呢?
请指教