Share via

Excel Listbox control heading...

Anonymous
2012-05-01T12:33:37+00:00

How can we add column headers through VBA into ActiveX listbox control? If we use range details(.listFillRange), the heading will come up. But, through code, I am not able to do this. Any help?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2012-05-01T12:56:17+00:00

Sorry, that's not possible. ColumnHeaders are ONLY available if you set the ListFillRange property to a worksheet range, not if you populate the list box using AddItem or by setting its List.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2012-05-01T13:37:01+00:00

    Thanks Hans.

    Was this answer helpful?

    0 comments No comments