Hi! i´ve been struggling with this one for a bit now. I want to paste something into the Last Column Header of a Table. I´ve tried with following code:
I´´ve verified if I was in the active sheet, and if the table name was correct already. By testing this code, it pastes on the cell before the First Column header, and not on the last column header.
Any help?
VBA Code:
ActiveSheet.ListObjects("TableName").HeaderRowRange(LastColumn).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
I´´ve verified if I was in the active sheet, and if the table name was correct already. By testing this code, it pastes on the cell before the First Column header, and not on the last column header.
Any help?