+ Reply to Thread
Results 1 to 2 of 2

Option Buttons - Fast Way to Manage 5000+

  1. #1
    Registered User
    Join Date
    12-28-2011
    Location
    Here
    MS-Off Ver
    Excel 2007
    Posts
    43

    Option Buttons - Fast Way to Manage 5000+

    Hi guys,

    I have created a sheet that is using option buttons to select a cell of data and input it onto another sheet for a type of scorecard. However, the sheet is over 5000+ records for our group to choose from. I was wondering if anyone knew a short way I could copy down the code below so that it would easily populate the next value? That being, Optionbutton1 would turn into Optionbutton2 and Range("B1") would turn into Range("B2") and so forth all the way down for each option button. Seeing as writing this all out seems too tedious.

    Please Login or Register  to view this content.
    Or possibly a solution that would better but has to be as user friendly as possible.

    Regards,

    Bob

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Option Buttons - Fast Way to Manage 5000+

    Hi, Bob,

    Class programming.

    Maybe you could use either Worksheet_BeforeDoubleClick or Worksheet_BeforeRightClick events (limited to a certain column in the sheet) to simplify the code. Or use a VBA-Userform which is called on entering a cell via the Worksheet_SelectionChange event (and also limited to one column, here as well to the upper left cell of the selection). Coding for these events delivers Target where Target.Row could be used for the addresses of the cells to be copied.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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