We are now the Minnesota IT Hub

A long time ago (back in 2003) I started Ntech Communications (www.ntechcomm.com), an IT Consulting company for small business customers. This was my college job while I figured out what I wanted to be when I grew up. Over time, I transitioned the company domain name into a blog with various computing tips, code examples, […]

Search Text With Regular Expressions in VBA | RegEx VBA

For text items that are difficult to parse, regular expressions can come in handy. For this example, I put together a function that parses email addresses from string text. For simplicity and reference-sake, I adopted an email regex search pattern from: http://www.regular-expressions.info/email.html. Not all use cases are created equally, re-purpose my example as needed. Also, […]

Import Multiple Spreadsheets into Access | File Dialog VBA

Sometimes it would be great to combine a bunch of spreadsheets into one table. When working with consolidated spreadsheet data, be sure to manage duplicates. To import multiple spreadsheets into Access with VBA, there are a few housekeeping items that must be completed. First, you need to make sure that the data structure for all […]

VBA Export to CSV From SQL With Save-As in Access

Although not as common as exporting to Excel, some projects may have a need to export in .csv format. Here is my solution. VBA Export With User Defined SQL Query This example uses the QueryDef function. Basically, the user passes a SQL query in, the file dialog prompts for where to save-as and the export […]

Create a Folder For Every Tuesday for One Year

I honestly have no idea how much traffic this article is going to get. I wanted to post it simply because I thought it was neat. This script was designed to automatically generate a folder name of ‘mmddyyyy’ for every Tuesday¬†date of a year that a user inputs. This script can be copied and pasted […]

How to Find Fourth Thursday of November in VBA

I recently built a project where I had to count business days by excluding weekends and US Federal holidays. In my previous post: , my example used hard-coded dates. This new example can be adapted and re-coded to find the date of any specific weekday or holiday of the year without the need to hard-code. […]