Using form controls

%3CLINGO-SUB%20id%3D%22lingo-sub-1587321%22%20slang%3D%22en-US%22%3EUsing%20form%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1587321%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20having%20difficulties%20using%20a%20control%20form%20box.%20I%20am%20trying%20to%20give%204%20options%20for%20each%20of%2020%20questions%20with%20each%20answer%20giving%20a%20different%20score%20in%20each%20question.%20I%20can't%20seem%20to%20make%20the%20control%20boxes%20only%20work%20for%20each%20question.%20I've%20tried%20grouping%20the%20control%20boxes%20for%20each%20question%20but%20nothing%20stops%20all%20the%20control%20boxes%20linking%20to%20one%20cell%20on%20the%20spreadsheet.%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20someone%20advise%20me%20please%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1587321%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1587342%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20form%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1587342%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F758786%22%20target%3D%22_blank%22%3E%40Andrew_RW%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20create%20a%20copy%20for%20the%20control%20boxes%20or%20you%20created%20each%20box%20for%20each%20question%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20possible%20they%20are%20linked%20together%20if%20they%20were%20created%20by%20copying%20from%20another%20box.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20share%20the%20file%20after%20removing%20confidential%20information%2C%20so%20we%20can%20have%20a%20look.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1587351%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20form%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1587351%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F758786%22%20target%3D%22_blank%22%3E%40Andrew_RW%3C%2FA%3E%26nbsp%3BI%20will%20try%20setting%20the%20boxes%20again%20but%20here's%20the%20file%20anyway.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1587357%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20form%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1587357%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F622486%22%20target%3D%22_blank%22%3E%40wumolad%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20just%20replied%20to%20my%20self!%20New%20to%20this!%20I%20thought%20I%20had%20set%20them%20up%20differently%20but%20maybe%20not.%3C%2FP%3E%3CP%3EHere's%20the%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1587390%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20form%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1587390%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F758786%22%20target%3D%22_blank%22%3E%40Andrew_RW%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20only%201%20option%20button%20in%20the%20file%2C%20what%20did%20you%20say%20was%20the%20issue%20in%20the%20initial%20message%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1587439%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20form%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1587439%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F622486%22%20target%3D%22_blank%22%3E%40wumolad%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%2020%20questions%20for%20which%20I%20have%204%20options%20for%20each%20question.%20I%20am%20trying%20to%20get%20one%20set%20of%204%20options%20for%20each%20question%20but%20every%20time%20I%20try%20to%20start%20a%20new%20set%20of%20control%20boxes%20for%20a%20new%20question%20it%20links%20with%20the%20previous%204%20control%20boxes.%20When%20I%20try%20to%20start%20a%20new%20option%20box%20it%20says%20'Option%20Box%2033'%20etc%3C%2FP%3E%3CP%3EAny%20ideas%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1587467%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20form%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1587467%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F622486%22%20target%3D%22_blank%22%3E%40wumolad%3C%2FA%3E%26nbsp%3BHere%20is%20the%20file%20with%20more%20questions%20and%20options.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1587554%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20form%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1587554%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F758786%22%20target%3D%22_blank%22%3E%40Andrew_RW%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20about%20an%20option%20that%20doesn't%20require%20VBA.%20Just%20uses%20Data%20Validation%20for%20the%20drop%20down%2C%20and%20then%20a%20simple%20formula%20to%20put%20the%201%20in%20the%20appropriate%20box.%20Here's%20the%20formula%20I%20put%20in%20cell%20D3%20in%20the%20attached%20(I%20deleted%20the%20macro-dependent%20rows%20since%20this%20was%20just%20a%20demo)%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DIF(%24B3%3DD%242%2C1%2C0)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThat%20formula%2C%20copied%20to%20all%20the%20other%20relevant%20cells%2C%20compares%20the%20answer%20selected%20with%20the%20column%20heading.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20admit%20to%20being%20biased%20against%20macros.%20There%20are%20times%20when%20they%20may%20be%20essential%2C%20but%20it's%20often%20possible%20to%20create%20a%20simpler%20and%20equally%20effective%20solution%20with%20Excel's%20pre-existing%20functions%20(and%20a%20smaller%20file%20to%20boot).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1587775%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20form%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1587775%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'll%20give%20that%20a%20try.%20I%20appreciate%20your%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1588336%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20form%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1588336%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F758786%22%20target%3D%22_blank%22%3E%40Andrew_RW%3C%2FA%3E%26nbsp%3BI%20believe%20the%20problem%20you%20are%20facing%20is%20due%20to%20the%20fact%20that%20you%20have%20grouped%20the%20button%20objects%20rather%20than%20enclose%20the%20option%20buttons%20that%20belong%20together%20inside%20a%20group%20box.%3C%2FP%3E%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202020-08-14%20at%2007.20.41.png%22%20style%3D%22width%3A%2046px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212350i752208E162117483%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20title%3D%22Screenshot%202020-08-14%20at%2007.20.41.png%22%20alt%3D%22Screenshot%202020-08-14%20at%2007.20.41.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIn%20the%20attached%20example%2C%20I%20have%20created%20two%20group%20boxes%20(also%20from%20the%20Developer%20ribbon.%20Buttons%202%20and%203%20are%20linked%20to%20one%20cell%20(C4)%20and%20buttons%205%20and%206%20to%20another%20(C14).%20Buttons%207%20to%2010%20are%20all%20linked%20to%20H4%2C%20but%20I%20have%20grouped%20buttons%207%20and%208%20(and%20then%20buttons%209%20and%2010)%20by%20selecting%20them%20and%20than%20right-click%20and%20select%20%22Group%22.%20This%20groups%20the%20buttons%20as%20objects%20so%20that%20you%20can%20select%2C%20resize%2C%20move%20or%20format%20then%20all%20at%20once%2C%20but%20it%20does%20not%20have%20the%20same%20effect%20as%20grouping%20them%20inside%20a%20group%20box.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I'm having difficulties using a control form box. I am trying to give 4 options for each of 20 questions with each answer giving a different score in each question. I can't seem to make the control boxes only work for each question. I've tried grouping the control boxes for each question but nothing stops all the control boxes linking to one cell on the spreadsheet. 

Can someone advise me please? 

9 Replies
Highlighted

Hi @Andrew_RW 

 

Did you create a copy for the control boxes or you created each box for each question?

 

It's possible they are linked together if they were created by copying from another box. 

 

You can share the file after removing confidential information, so we can have a look.

 

Cheers

@Andrew_RW I will try setting the boxes again but here's the file anyway. 

Highlighted

Thanks @wumolad 

I've just replied to my self! New to this! I thought I had set them up differently but maybe not.

Here's the file.

Highlighted

@Andrew_RW 

 

There is only 1 option button in the file, what did you say was the issue in the initial message?

Highlighted

Hi @wumolad 

I have 20 questions for which I have 4 options for each question. I am trying to get one set of 4 options for each question but every time I try to start a new set of control boxes for a new question it links with the previous 4 control boxes. When I try to start a new option box it says 'Option Box 33' etc

Any ideas?

Highlighted

@wumolad Here is the file with more questions and options.

Highlighted

@Andrew_RW 

 

How about an option that doesn't require VBA. Just uses Data Validation for the drop down, and then a simple formula to put the 1 in the appropriate box. Here's the formula I put in cell D3 in the attached (I deleted the macro-dependent rows since this was just a demo):

=IF($B3=D$2,1,0)

That formula, copied to all the other relevant cells, compares the answer selected with the column heading.

 

I will admit to being biased against macros. There are times when they may be essential, but it's often possible to create a simpler and equally effective solution with Excel's pre-existing functions (and a smaller file to boot).

Highlighted

Thanks @mathetes 

I'll give that a try. I appreciate your help.

Highlighted

@Andrew_RW I believe the problem you are facing is due to the fact that you have grouped the button objects rather than enclose the option buttons that belong together inside a group box.

 Screenshot 2020-08-14 at 07.20.41.png

In the attached example, I have created two group boxes (also from the Developer ribbon. Buttons 2 and 3 are linked to one cell (C4) and buttons 5 and 6 to another (C14). Buttons 7 to 10 are all linked to H4, but I have grouped buttons 7 and 8 (and then buttons 9 and 10) by selecting them and than right-click and select "Group". This groups the buttons as objects so that you can select, resize, move or format then all at once, but it does not have the same effect as grouping them inside a group box.