Hi
I have a question re: VBA macros, and I'm not very good at them. Anyway, it is one worksheet, with vertical page breaks and each column has a heading. So cell D1 is Person D, cell E1 is Person E etc to column AU. I want to use this column name to name my pdf docs. One pdf doc per person. Anyway, I have all of the code, EXCEPT how to get the column name out of the excel column. I've tried about 40 codes but i can't work it. e.g ReportPersonD.pdf ReportPersonE.pdf
ColumnName = sht.Range("B" & RwStart).Value
ReportName = "Report_" & ColumnName & "_" & n & ".pdf"
I've tried various ranges but obviously not using the correct formula. I did search the forum but maybe I didn't search on the correct terms? Thanks
I have a question re: VBA macros, and I'm not very good at them. Anyway, it is one worksheet, with vertical page breaks and each column has a heading. So cell D1 is Person D, cell E1 is Person E etc to column AU. I want to use this column name to name my pdf docs. One pdf doc per person. Anyway, I have all of the code, EXCEPT how to get the column name out of the excel column. I've tried about 40 codes but i can't work it. e.g ReportPersonD.pdf ReportPersonE.pdf
ColumnName = sht.Range("B" & RwStart).Value
ReportName = "Report_" & ColumnName & "_" & n & ".pdf"
I've tried various ranges but obviously not using the correct formula. I did search the forum but maybe I didn't search on the correct terms? Thanks