Lewiy
Well-known Member
- Joined
- Jan 5, 2007
- Messages
- 4,284
Most of my background knowledge came from doing a bit of Pascal/Delphi programming in college. It was more the "theory" behind it that was useful, things like knowing how looping and sorting work were invaluable. It meant that I knew the sorts of things that I should be able to do which makes it easier as a starting point.
Here are a couple of interesting Wiki pages I found which may help with some theory/pseudo code:
Looping:
http://en.wikipedia.org/wiki/Conditional_loop
Sorting:
http://en.wikipedia.org/wiki/Sorting_algorithm
The thing that always stumped me at college was reading and writing data to text files for storage. Luckily, this is where Excel VBA comes into it's own beacuse it's as easy as assigning values to cells!
The link which PaddyD posted is actually a very useful starting point to understanding how to amend the Macro Recorder code to eliminate all the unnecessary bits which slow things down. One of the things I did when I started learning VBA was to analyse each line of code seperately (with the aid of the help files) to understand what it was doing and why and whether there were alternative solutions/methods (believe it or not, quite often, help file examples will actually provide you with relevant code in my experience!). I still do this now when people here provide me with code solutions rather than just using it because it means you stand a chance of being able to debug/edit the code when necessary.
I'm going on a bit now so I'll leave it at that for the time being and wish you the best of luck!
Here are a couple of interesting Wiki pages I found which may help with some theory/pseudo code:
Looping:
http://en.wikipedia.org/wiki/Conditional_loop
Sorting:
http://en.wikipedia.org/wiki/Sorting_algorithm
The thing that always stumped me at college was reading and writing data to text files for storage. Luckily, this is where Excel VBA comes into it's own beacuse it's as easy as assigning values to cells!
The link which PaddyD posted is actually a very useful starting point to understanding how to amend the Macro Recorder code to eliminate all the unnecessary bits which slow things down. One of the things I did when I started learning VBA was to analyse each line of code seperately (with the aid of the help files) to understand what it was doing and why and whether there were alternative solutions/methods (believe it or not, quite often, help file examples will actually provide you with relevant code in my experience!). I still do this now when people here provide me with code solutions rather than just using it because it means you stand a chance of being able to debug/edit the code when necessary.
I'm going on a bit now so I'll leave it at that for the time being and wish you the best of luck!