Hey DouCow,
Look on https://excelmacromastery.com/vba-dim/ down in the Replies.
"There are only a few possible suffixes" for Dim Type
# = Double, % = Integer, & = Long, ! = Single, $ = String
Some VBA code writers like to use
instead of
I hate this type of short Dim statement as it makes me stop and look up what the #%$& stuff means. Learn to write better VBA and make your variables meaningful. Instead of i, j, k; name them LastRow, RowCtr, ColCtr. That way reading the code is much easier.
While I'm on this rant....
We have a few Gurus on this site who want to write as few lines of code as possible. I've struggled understanding their code just because they don't Dim their variables with real words. Then when I ask WTF their code is doing they say it works and that is enough. If we are here to help explain answers to problems, I'd like to see readable VBA code. End Rant
Bookmarks