Avatar of Bill Golden
Bill Golden
Flag for United States of America asked on

Excel Spreadsheet Formula

On my SETUP! Worksheet, I have four cells (T30, T31, T32, and T33) I want to designate for placing an X, and only an X, in any one, but not more than one, of the four cells.
Then, on my Worksheet1, Worksheet2, Worksheet3, etc. I want cells K4, K5, K6 or K7 to indicate the X placed in cells T30, T31, T32, and T33 on the SETUP! Worksheet, respectively.
I have attached the workbook.
Microsoft ExcelSpreadsheetsVBA

Avatar of undefined
Last Comment
Bill Golden

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
James Elliott

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
James Elliott

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Steve

How about a validation list above the cell...
This will allow for a drop down list of values (1 to 4) or actual list of titles (T1,T2 etc)

See attached for example.
U--EE.xlsb
Bill Golden

ASKER
It works but I am having trouble integrating it into my worksheet.  I am just getting started with VBA and there are already 5 Private Sub Worksheets and when I append your VBA code to any of those I get a compiler error regarding an ambiguous name detected.  I am not familiar with how to create another pane (I am sure that is not the correct word) to place your code in.
James Elliott

If you upload your spreadsheet I'll do it for you.

Or Steve's Non-VBA validation list solution might work better for you?
Your help has saved me hundreds of hours of internet surfing.
fblack61
Bill Golden

ASKER
No matter which Sheet (Code) I add the routine to, I get a compiler error "ambiguous name detected"

I think I managed to add the workbook this time.
JE-Master-WithTabNamingandPageCountB.xls
Bill Golden

ASKER
Steve, you idea is interesting, but not really necessary with this spreadsheet.  It will help me greatly with one I have to design this weekend.  Thanks,
James Elliott

You already had change event so I added the code to it. When you pasted my code, it duplicated a change event.

This should work.
JE-Master-WithTabNamingandPageCountB.xls
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Bill Golden

ASKER
One last fix.  Can you return a capital X even when they enter a small case x?
Bill Golden

ASKER
And, prevent someone from entering anything besides an "X"
Bill Golden

ASKER
Did the validation thing on the X. Used Steve's solution in another place. Thanks guys.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy