April15Hater
01-18-2010, 06:05 AM
Hi all-
I have an excel spreadsheet that has column headers that are identical to the column headers that are in an ADO crosstab query I'm running. What I would like to do is take the name of the excel header and use it to call the column identifier in ADO for a report I'm making. I'm just having problems getting the blue text syntax right:
For x = intMaxColumn to xlProductionReportSheet.Range("A1:IV1").End(xlToRight).Column
strExcelColumnHeader = .cells(1, x)
.cells(RowCount, x) = rsvalues!strExcelColumnHeader
Next x
Thanks,
Joe
I have an excel spreadsheet that has column headers that are identical to the column headers that are in an ADO crosstab query I'm running. What I would like to do is take the name of the excel header and use it to call the column identifier in ADO for a report I'm making. I'm just having problems getting the blue text syntax right:
For x = intMaxColumn to xlProductionReportSheet.Range("A1:IV1").End(xlToRight).Column
strExcelColumnHeader = .cells(1, x)
.cells(RowCount, x) = rsvalues!strExcelColumnHeader
Next x
Thanks,
Joe