April15Hater
Accountant
- Local time
- Yesterday, 19:18
- Joined
- Sep 12, 2008
- Messages
- 349
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:
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:
Code:
For x = intMaxColumn to xlProductionReportSheet.Range("A1:IV1").End(xlToRight).Column
strExcelColumnHeader = .cells(1, x)
.cells(RowCount, x) = [COLOR=Blue]rsvalues!strExcelColumnHeader[/COLOR]
Next x
Joe