Results 1 to 4 of 4

Thread: Excel OptionButtons

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    2

    Excel OptionButtons

    I have a workbook with multiple worksheets in it. It's basically a lengthy survey and on each worksheet, there are OptionButtons and CheckBoxes. As you go through the survey, you select the appropriate CheckBox or OptionButton that corresponds with your answer.

    Here is my problem;

    Sometimes when I flip from worksheet to worksheet, the OptionButton value is cleared. The CheckBoxes work just fine.

    Any ideas? I've checked all of the properties and many many internet searches for help, with no success. There is no code under WorkSheet_Activate.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Excel OptionButtons

    Welcome to the Forums.

    Could you attach your xls file if possible? You have nothing anywhere that is setting the option button values?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    2

    Re: Excel OptionButtons

    The .xls file is huge (over 4MB in size). The only code effecting the option buttons is as follows (each OptionButton has similar code).

    If OptionButton18.Value = True Then
    Range("d10").Value = 0
    Range("d11").Value = 3
    Range("d12").Value = 0
    Range("d13").Value = 0
    Range("d14").Value = 0
    Range("d15").Value = 0
    End If

    Yes, the OptionButtons "sets" are all in unique Groups (properties box).

    Do you think Excel Service Pack 2 would effect it?

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Excel OptionButtons

    Not sure as I havent heard of this issue before. It may be a good idea to search MS for known issues on SP2 for office 2003.

    One way to tell is to comment all your option button code completely and see if the issue goes away. If it does then its your code logic that is the problem.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

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



Click Here to Expand Forum to Full Width