Code Monkey home page Code Monkey logo

tombombleron / pa-vba Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 172 KB

This is a collection of sub procedures and functions which I've created and implemented whilst administrating the Corporate Credit Card program of a well-known conglomerate. The majority of the code is related to automating the sending of notification emails from MS Access and Excel.

License: MIT License

Visual Basic 95.27% PowerShell 4.73%
vba vba-excel vba-modules vba-snippets

pa-vba's Introduction

PA-VBA

This is a collection of sub procedures and functions which I've created and implemented whilst administrating the Corporate Credit Card program of a well-known conglomerate. The majority of the code is related to automating the sending of notification emails from MS Access and Excel.

There are several PERSONAL.XLSB sub procedures included which I also run on a daily basis.

Access

The Access folder consists of macros from a custom database I created specifically for the role; all the macros are run from forms in an executable-only version of the database.

Excel

Excel is used largely for ad-hoc reporting, and the generation and sending of a set of emails with attachments each morning.

send_ssc_emails

This script eliminated ~90 minutes of work each morning. The original process included:

  • Manually creating emails with concatenated strings from a CSV for subjects,
  • Attaching a file with the same name as one record in the CSV,
  • Sending them to the same email address.

The script takes between 3 and 5 minutes to run on its own now. The reason it takes so long is a result of the awkward way of sending each email to comply with the receiving server's 'anti-spam' protocols.

Outlook

This sub procedure is called by a rule which runs on all incoming mail.

Throughout the month I'm sporadically emailed notifications of people who are leaving the business, it is a hassle to find all these emails at the end of the month and manually enter each employee into a spreadsheet to forward on to bossman.

This procedure, when the rule fires, automatically adds the email subject (including the employee name) to a workbook, and either creates a new sheet for a new month, or adds the strings to the sheet for the existing month.

SQL

These contain a selection of queries (MS Access SQL syntax) which I created in the Access database.

pa-vba's People

Contributors

tombombleron avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

igoreksiz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.