- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
(English) 10-11-12
(Swedish) 10-11-12
Now, tell me, how is Excel supposed to read your mind and do what you expected, rather than obey the regional settings you've defined?
Admin
FTFY.
As an aside,Worksheet_Calculate() is an event that fires when you edit a cell, a WTF bonus.
/Saluto!
Admin
Admin
It's like Highlander, only Brillant.
Admin
Admin
If you insert a row, then 'paula' will now refer to A2.
If you then set [A1].Name = 'paula', that becomes 'paula'. No complaints from Excel or VBA. Of course you may have actually wanted the value in A2, but now that 'paula' refers to the wrong spot, well too bad.
FWIW 'Named Ranges' can can be global (workbook) or local (worksheet), so a book with three sheets can have four 'paula' ranges in there. The global name trumps the local one, so ='paula' may not get the answer you were expecting.
Oh what an I saying, they'd all be 'Brillant'.
Admin
The beauty of Microsoft VBA is that anyone good piece together code to accomplish whatever his/her mind could think of without having years of coding education or training. The purpose of the product was to unleash the creativity of the average everyday user without having to be dependent on a professional coder every time a change was needed. I have great respect for professional coders, they are like magicians. But professional coders lack the corresponding respect for average everyday people who tried the hardest to make a product work for them as best they could. Instead of mocking the example code, show a little respect for the time and energy needed to create the solution to a problem as it existed at the time.
Admin
Bruce old son, you need to read this comment: http://thedailywtf.com/Comments/Giving-Excel-the-RunaRound.aspx#432754 which explains the much deserved mocking.
Admin