+ Reply to Thread
Results 1 to 3 of 3

Bugged behavior in Listview ActiveX Control

Hybrid View

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    Brazil
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Bugged behavior in Listview ActiveX Control

    Hi guys, I making and spreadsheet that with a Listview Activex Contron on a sheet.
    However, I am experiencing some bugs with this control.

    First of all, I am not able to add columns headers. I am using the same code that actually work when adding header in a Listview that is in a userform, but I get an error: "Invalid property value" when trying to do the same with the list view activex control in a sheet.

    Here is the code:

    Sub Configure_Activex_Listview()
      
        With Sheets(1).ListView1
            .Gridlines = True
            .HideColumnHeaders = False
            .View = lvwReport
            .ColumnHeaders.Add Text:="Column 1", Width:=50
            .ColumnHeaders.Add Text:="Column 2", Width:=50
        End With
    End Sub
    Beyond that, when the code start, excel seems to create a second activex control on the screen, that only goes out if I delete the original control. I attached an image of this bug.

    Bug.JPG




    And it is even more strange because it also happen if a manipulate an userform that has nothing to do with the listview itself.

    I created a file where you can see this behavior and also see that the same code will run when applying to a listview in a userform: https://drive.google.com/file/d/0B6w...ew?usp=sharing

    I hope any of you could help me with this, because first I have started making this application entirely on userforms but then I decided to change it to activex controls, but now I am almost thinking about going back to the userform approach.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Bugged behavior in Listview ActiveX Control

    I think you would get pretty consistent recommendations here to go back to userforms. ActiveX controls on worksheet are very buggy.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-12-2014
    Location
    Brazil
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Bugged behavior in Listview ActiveX Control

    Quote Originally Posted by shg View Post
    I think you would get pretty consistent recommendations here to go back to userforms. ActiveX controls on worksheet are very buggy.
    I decided to place activex controls directly on the sheet because I am planning to make a app that does not look like Excel at all and using sheets it is also possible to use a bigger variety of shapes and other good lloking elements than in userforms.
    I was also having some problems with userform positioning and how to predict how it would like in different resolutions.

    But I guess that maybe the apparent advantages of using activex controls are not worth, so I may go back to the userform approach.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] HELP! can't add listview activex in userform :(
    By radian89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2015, 09:05 AM
  2. Populating ListView control
    By jberr in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-13-2015, 07:52 AM
  3. Listview Control version 6.0
    By PerryBeatty in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-24-2014, 06:49 AM
  4. [SOLVED] ListView odd behavior
    By tradinup2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2013, 11:52 PM
  5. [SOLVED] Printing ListView Control Items into WorkSheet
    By contaminated in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 09:35 AM
  6. ListView Control / Drag&Drop / msghook
    By gooopil in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2011, 01:08 PM
  7. Populate Excel Listview Control
    By Evagrius in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-02-2009, 03:36 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1