Consulting

Results 1 to 3 of 3

Thread: Listview control

  1. #1
    VBAX Newbie
    Joined
    May 2017
    Posts
    2
    Location

    Listview control

    Hello there

    I have listview control on excel vba form, now that I want to wrap the column header as below ;

    Hello
    hello1
    Hello2

    Please let me know if this can be done. Basically I want multiline header below is the code



    With FRM.ListView1
    .Gridlines = True
    .View = lvwReport
    .FullRowSelect = True
    .ColumnHeaders.Add Text:="Hello" & vbCrLf & "Hello1", Width:=100
    .ColumnHeaders.Add Text:="I am here" ,Width:=100
    Last edited by Aussiebear; 03-29-2023 at 06:10 PM. Reason: Added code tags

  2. #2
    VBAX Newbie
    Joined
    May 2017
    Posts
    2
    Location
    Is this active group ?

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Please post a sample workbook showing your setup and userform
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •