Results 1 to 10 of 30

Thread: Class related Stuff Userforms

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    https://www.excelforum.com/excel-pro...ml#post4382657
    https://www.excelfox.com/forum/showt...ll=1#post24171





    Still struggling here.

    Can anyone help


    _......




    Possible a User Form expert may see that I am missing something fundamental ? .

    I am still not able to get anything other than False when using debug lines ( which I have at the points where I want to use such a check )

    Code:
    StatusDeBuger:   Dim v: v = ufResults.OptionButton2.Value: Debug.Print "ufResults.OptionButton2.Value "; v
    Code:
    EresDeBuger:     v = ufResults.Refresh.Value: Debug.Print "ufResults.Refresh.Value "; v
    The full story is given, and the File is linked, in the previous posts

    Here again I give the relavent parts of the Worksheet_change code
    ( Apologies again that I can not simplify this code and test data. As mentioned before this is particularly difficult in this case to do )

    Towards the start I have this, which appears to make the User Form come up

    Code:
    Static fm As ufResults
        If fm Is Nothing Then Set fm = New ufResults
        If Not fm.Visible Then fm.Show False 'make sure UserForm is always there,
    Then a bit further down I have this DeBug Line

    Code:
    StatusDeBuger:   Dim v: v = ufResults.OptionButton2.Value: Debug.Print "ufResults.OptionButton2.Value "; v
    Towards the end of the code I have a line which puts the contents of an Array into a list in the User Form
    Code:
        fm.lstResults.ColumnCount = UBound(ArrDisplaySP(), 2): fm.lstResults.List = ArrDisplaySP(): fm.Repaint
    Shortly after that I have my second Debuger line

    Code:
    EresDeBuger:     v = ufResults.Refresh.Value: Debug.Print "ufResults.Refresh.Value "; v
    Thank you
    Alan


    P.s. The File Link again, details about it, how to use it etc.. in first post

    https://app.box.com/s/fpztob9pcp92fl6hh81zgpzumw9ntcp0
    Last edited by DocAElstein; 06-01-2024 at 05:31 PM.

Similar Threads

  1. Class Stuff: VBA Custom Classes & Objects, Class Modules
    By DocAElstein in forum Excel and VBA Tips and Tricks
    Replies: 29
    Last Post: 06-02-2024, 01:49 PM
  2. Replies: 42
    Last Post: 05-29-2023, 01:19 PM
  3. Test my rights , to do stuff
    By TestAccount in forum Test Area
    Replies: 0
    Last Post: 10-07-2020, 11:49 AM
  4. Backup all modules, class modules and userforms to a selectable folder
    By MrBlackd in forum Excel and VBA Tips and Tricks
    Replies: 1
    Last Post: 04-06-2014, 08:33 AM
  5. Pass Values Between Multiple Userforms
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 07-24-2011, 03:25 AM

Posting Permissions

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