arrays
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Arrays

Arrays

resolvedResolved · Low Priority · Version 2007

replyReply Wed 27 Jul 2011, 13:02Delegate Peter said...

Arrays

What is the purpose of an array and how would this help my VBA code?

For upcoming training course dates see: Pricing & availability

replyReply Fri 29 Jul 2011, 12:33Trainer Anthony said...

RE: Arrays

Hi Peter, thanks for your query. Arrays are used for two purposes - to hold vastly more data than can be held on an Excel worksheet and to do things quickly. By manipulating your data in an array you leverage the processing power of the computer far more efficiently than wasting computational power and time rendering the data manipulation on the worksheet. I would head in the direction of arrays if my source data was huge and the time it took to process that data was lengthy.

There is an excellent page on arrays here, which links to a file containing some extremely useful examples:

http://www.cpearson.com/excel/vbaarrays.htm

Hope this helps,

Anthony

Thu 4 Aug 2011: Automatically marked as resolved.

 

Please browse our web site to find out more about
microsoft excel courses in london and other Microsoft training courses.

Excel tip:

Generate randon numbers

Some types of analysis require you to use randomly generated numbers. You can also use randomly generated numbers to quickly populate an Excel spreadsheet. There's an easy function you can use to do this automatically. Here are a few of the ways you can use it:

Type =RAND() in a cell to generate a number between 0 and 1.
Type =RAND()*100 to generate a number between 1 and 100.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard