BananaKing
New Member
- Joined
- Mar 5, 2023
- Messages
- 4
- Office Version
- 2010
- Platform
- Windows
Hello everyone,
after a quite long research I decided to register and ask the experts here. I'm more or less completely new to VBA, but I'm sure I'm in the right place now..
My question might sound very amateurish, nevertheless I couldn't find a solution:
I've found a VBA code for imitate a dark mode in Excel [ExcelDarkMode/DarkMode.vba at main · stu0292/ExcelDarkMode]. I could run it, but it affects all tables in a spreadsheet - I just want it to change the active one only.
I've found out the function for the loop starts at line 277 (278) and ends at line 286 and will be called from different parts of the whole code. So, I assume best would be to adjust these lines here...
I've also found a solution to the fact, that a sheet could be named individually and the name itself should not be hardcoded:
I guess, why here a 'function' (instead of a 'sub') is used has its reasons, but as I said, I'm pretty new to the topic, so I more or less accept that fact for now.
Leaving off the 'For Each's and 'Next's would just seem to simple - anyway doesn't work..
How would a simple solution look like?
Many thanks in advance!
PS. Doing the research I just gained a lot interesting information and I might start learning and working with VBA maybe, at least I'm very motivated what could be achived with it! But for now I simply need to protect my eyes and continue with some other stuff in Excel... on a new spreadsheet the 'dark mode' VBA affecting all sheets does its jobs pretty well, but I'm working with some files, where not everything should be altered. I hope I provided you with all necessary information and did not forget anything!
after a quite long research I decided to register and ask the experts here. I'm more or less completely new to VBA, but I'm sure I'm in the right place now..
My question might sound very amateurish, nevertheless I couldn't find a solution:
I've found a VBA code for imitate a dark mode in Excel [ExcelDarkMode/DarkMode.vba at main · stu0292/ExcelDarkMode]. I could run it, but it affects all tables in a spreadsheet - I just want it to change the active one only.
I've found out the function for the loop starts at line 277 (278) and ends at line 286 and will be called from different parts of the whole code. So, I assume best would be to adjust these lines here...
I've also found a solution to the fact, that a sheet could be named individually and the name itself should not be hardcoded:
Excel VBA - Select Active Table in Active Sheet in Active Workbook?
I am trying to write a Macro that would select the Active Table in the Active Sheet in the Active Workbook for data stored in "C3:H9". I know the following VBA references can be used: "Application.ActiveWorkbook.ActiveSheet.ActiveCell" can be used to refer to the ActiveCell as mentioned in Link...
www.mrexcel.com
I guess, why here a 'function' (instead of a 'sub') is used has its reasons, but as I said, I'm pretty new to the topic, so I more or less accept that fact for now.
Leaving off the 'For Each's and 'Next's would just seem to simple - anyway doesn't work..
How would a simple solution look like?
Many thanks in advance!
PS. Doing the research I just gained a lot interesting information and I might start learning and working with VBA maybe, at least I'm very motivated what could be achived with it! But for now I simply need to protect my eyes and continue with some other stuff in Excel... on a new spreadsheet the 'dark mode' VBA affecting all sheets does its jobs pretty well, but I'm working with some files, where not everything should be altered. I hope I provided you with all necessary information and did not forget anything!