Excel VBA Course
Excel VBA Course - From Beginner to Expert

200+ Video Lessons
50+ Hours of Video
200+ Excel Guides

Become a master of VBA and Macros in Excel and learn how to automate all of your tasks in Excel with this online course. (No VBA experience required.)

View Course

Sudoku solver

0

Hi. I have tinkered with this project and have exhausted all attempts to solve one feature. I assume you will know the rules of a Sudoku puzzle. The main work area is D5:L13 and numbers entered there are repeated in Z6:AP22. Because of this, the sheet has to be protected. The small board is used for standard puzzles and the large for fiendish ones. The object I am seeking is for, say, 8 is entered in D5 and appears in Z6. I would like the red 1,8 & 9 to auto delete and the 4 1's to clear if they equal D5 or Z6.Before going any further, I imagine there's a potential 81 macros involved. If so, would that be too many or slow the sheet significantly? I currently delete the red numbers manually, but as I am timing myself I I would like an automatic solution, if one is possible. I have included the workbook so you can see how the sheet functions. If you ener 5 in D5 you will see what happens. Changing D5 to 8 you will see is a better number to enter. Thank you for any help you can offer.

Very sorry, protection (no password) must have set before the send performed. All references have been deleted so test 2 should open correctly.

Answer
Discuss

Discussion

The workbook I could download appears corrupted. Or perhaps it's protected in a way I haven't met before. Anyway, I can't find any of the code that is obviously active on the Main tab, such as the event procedure that responds changes in D5 (Sheet1's code sheet is totally blank) or the Black, Red and Blue buttons. Most of the standard code modules are empty (as is the ThisWorkbook module) but some of them contain Worksheet event procedures which have no business being there. The funny thing is that I see the code working but can't see the code. IMYHO your project hasn't reached the stage yet where protection might be useful - or automated saving. Those are things that should only be added when everything else is done and working. Having such features now just slows down the development work.
Variatus (rep: 4889) Sep 29, '20 at 9:00 pm
Add to Discussion



Answer the Question

You must create an account to use the forum. Create an Account or Login