Dear All,
Firstly, I would like to express my thanks and acknowledge those who have gone before me and learnt the hard way so that I may learn the easy way. This forum (and others such as Mr. Excel) are an absolute and complete resource for all things VBA (and Excel).
I make robotic parts and use VBA for some of the code to control stepper motors and it is nice to be able to open the proverbial 'Online VBA Dictionary-with answers' to get me through some of my adversities.
This post, whilst a little off-topic, is to say to those who dare venture into the world of For Next, Do While etc etc Loops with databases whilst attempting to do this on a 32 Bit machines.....be aware! You will not always get the results you desire.
I struggled for a little over two years with what I thought was a fairly upmarket and powerful desktop 32Bit machine with 4Gb RAM, Intel Quad Core Processor blah blah.....how wrong I was. If you are playing with SQL, Large Databases, Powershell or running very large Excel databases whereby your looping code enacts new pages to be created enmasse (Myrna Larson Permutations Code comes to mind, try link here: http://answers.microsoft.com/en-us/o...1-522bfe373d25),
Trust me - DON'T DO IT!!!!! I can liken it to just cutting one leg off before you start a 100m Sprint.
Splurge, spoil yourself, go out and buy yourself a decent machine (with current architecture/technology) that uses x64 Bit technology, using a x64 Bit processor, AND an 64 Bit OS.....then start with a minimum of 4Gb of RAM (preferred 8Gb) or indeed more RAM if you can afford it. Then install the 64 Bit version of Office. Office during installation defaults to 32 Bit, so don't let it autorun....Stop it, open the folder (CD) and look for the 64Bit Office Setup.exe version and run that.
I re-ran some old problematic code on my new machine that I prviously ran on my old 32 Bit machine, and WOW!!....What a difference! Like a new V8 engine under the hood!!! Sure, you have to append your VBA code to run on 64 Bit machines (go here for moreinfo on that: Link: https://msdn.microsoft.com/en-us/lib...fice.14).aspx)
So, the moral to the story.....I thought I had dodgy, poorly written code. Alas, a new lease on life with a new machine and it made all the difference. Coding is now more of a joy than ever.
For those who are interested in learning more of my coding and/or successes, my inbox (through Forum) is always open.
All the best.
H.
Bookmarks