ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Total Field Count (https://www.excelbanter.com/excel-programming/325974-total-field-count.html)

Markantesp

Total Field Count
 
I have connected an excel workbook to an access database. Is there a
function in VBA that will return the total field count of an access table?

Tom Ogilvy

Total Field Count
 
Assume you use data=Get External Data (or Import External Data)

Assume table is returned starting in cell A1 of Sheet3 and there is no other
data on the worksheet

=CountA(Sheet3!1:1) will give the number of fields (columns)

--
Regards,
Tom Ogilvy

"Markantesp" wrote in message
...
I have connected an excel workbook to an access database. Is there a
function in VBA that will return the total field count of an access table?





All times are GMT +1. The time now is 04:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com