My first post. I can usually find what I need and don't need to post but I've come up empty on this one.
I am exporting several tables from Access to Excel 2013 with VBA and then formatting the sheets as tables, adding NumberFormats and so on.
My titles are abbreviated so I want to add verbose descriptions in a comment.
I've tried all the combinations of .Comment and AddComment I can think of.
xls.Application.Workbooks.Open (xlsxPath) Set wkb = xls.Application.ActiveWorkbook Set wks = wkb.Worksheets("tblKPI_Hourly") myName = "HourlyKPI" wks.ListObjects.Add(xlSrcRange, wks.Range("A1").CurrentRegion, , xlYes).Name = myName Set tbl = wks.ListObjects(myName) tbl.HeaderRowRange("tIn").Address.AddComment = "Total Inbound Contacts"
This returns Run-time error 5: Invalid procedure call or argument at the last line.
Thanks in advance.