Skip to content

Instantly share code, notes, and snippets.

View guwidoe's full-sized avatar

Guido Witt-Dörring guwidoe

  • EFS Consulting
  • Vienna
  • 07:52 (UTC +02:00)
View GitHub Profile
@guwidoe
guwidoe / VBA-Keywords.md
Last active April 23, 2024 17:29
Exhaustive list of VBA Keywords, including categories reserved and non-reserved

Exhaustive lists of VBA Keywords and Symbols

Copyright (c) 2023 Guido Witt-Dörring (MIT License)

This document attempts to provide various exhaustive lists of VBA keywords and symbols using various categorizations. This is useful because the official documentation is convoluted and incomplete and it is very difficult to derive such lists from official sources.

If you find missing keywords or mistakes in any of the lists or have any suggestions, please don't hesitate to leave a comment below.

Table of Contents

  1. Keywords
@guwidoe
guwidoe / VBA-AccurateTimer.bas.vb
Last active March 30, 2024 22:45
Cross-platform accurate timer for VBA code
' Cross-platform VBA implementation of a high-precision timer.
' (Works on Windows and on macOS)
'
' Author: Guido Witt-Dörring
' Created: 2023/04/03
' Updated: 2023/05/16
' License: MIT
'
' ————————————————————————————————————————————————————————————————
' https://gist.github.com/guwidoe/5c74c64d79c0e1cd1be458b0632b279a
@guwidoe
guwidoe / GetOneDriveUrlPath.bas.vb
Last active April 15, 2024 13:44
Cross-platform VBA Function to get the OneDrive/SharePoint Url path/link from a local path of a locally synced folder
' Cross-platform VBA Function to get the OneDrive/SharePoint Url path (link)
' from a local path of a locally synced folder (Works on Windows and on macOS)
'
' Author: Guido Witt-Dörring
' Created: 2022/07/01
' Updated: 2024/04/15
' License: MIT
'
' ————————————————————————————————————————————————————————————————
' https://gist.github.com/guwidoe/6f0cbcd22850a360c623f235edd2dce2
@guwidoe
guwidoe / CSIDL_VS_SSFC.md
Last active April 12, 2023 15:34
Obtaining Known Folders on Windows and Mac with VBA

Table comparing CSIDL and SSFC

Including example return values of

Code to genrerate this table for your own pc is provided below.

Dec | Hex | CSIDL code name | ssfC code name | SHGetFolderPathA return value | Equal? | oShell.NameSpace().Self.Path return value |

@guwidoe
guwidoe / KeepRecalculatingRange.bas.vb
Last active December 2, 2022 19:56
VBA Sub for recalculating any Workbook/Worksheet/Range at any desired time interval
Attribute VB_Name = "KeepRecalculatingRange"
Option Explicit
' VBA Sub for continuously recalculating any Excel Workbook/Worksheet/Range
' at any desired time interval given in seconds.
' Author: Guido Witt-Dörring
' Created: 2022/11/14
' Updated: 2022/12/02
' License: MIT
@guwidoe
guwidoe / GetLocalOneDrivePathVB.NET.vb
Last active October 23, 2022 16:20
VB.NET Function to get the local path of a OneDrive/SharePoint synchronized Microsoft Office file
' VB.NET Function to get the local path of OneDrive/SharePoint synchronized
' Microsoft Office files
'
' Author: Guido Witt-Dörring
' Created: 2022/07/01
' Updated: 2022/10/20
' License: MIT
'
' ----------------------------------------------------------------
' https://gist.github.com/guwidoe/bc875f4f25e0e970c62959d3c59da1d6
@guwidoe
guwidoe / GetLocalOneDrivePath.bas.vb
Last active April 29, 2024 23:07
VBA Function to get the local path of a OneDrive/SharePoint synchronized Microsoft Office file
'Attribute VB_Name = "GetLocalOneDrivePath"
'
' Cross-platform VBA Function to get the local path of OneDrive/SharePoint
' synchronized Microsoft Office files (Works on Windows and on macOS)
'
' Author: Guido Witt-Dörring
' Created: 2022/07/01
' Updated: 2024/04/23
' License: MIT
'