Access iconAutomation iconExcel icon

Check Access table(s) from Excel using Automation – Updated Code

Here is the revised and completed code that I posted yesterday. The DAO declarations are moved outside the Sub procedure and the 'Set' statements are outside the function loop. Also, the table & column headers are now passed as arguments to the function, making the code more compact. The speed increase over yesterday's code is significant.

Continue Reading: Check Access table(s) from Excel using Automation – Updated Code »

Access iconExcel iconVBA icon

Check Access table(s) from Excel using Automation

Finally, with some help from the good folks over in the microsoft.public.access.modulesdaovba newsgroup, I was able to complete my code to search an Access database for some information stored in an Excel worksheet.

Continue Reading: Check Access table(s) from Excel using Automation »

Excel iconVBA icon

Formatting Zip+4 Codes

If you have a column of zip+4, this macro will remove the suffix. Simply highlight the cells in question. It will skip any zip codes that don't have the suffix. It uses the Left$ string function which is more efficient than the standard Left() and always returns the first 5 characters in the cell.

Continue Reading: Formatting Zip+4 Codes »

Outlook iconVBA icon

Outlook VBA Code to Check Mail Size

This code, run on the currently open mail item, will display a message box giving you the size of the email in kilobytes.

Continue Reading: Outlook VBA Code to Check Mail Size »

Random Data Generator