Recently Updated Pages
Generating a Timestamp
To generate a timestamp from datetime import datetime TimeStamp = datetime.now().strftime("%Y...
Taking a screenshot
Full Screen import pyautogui pyautogui.screenshot("C:\\Users\\Nicholas Goh\\Desktop\\test.png...
Writing to CSV
To write to a CSV file import csv header = ['name', 'area', 'country_code2', 'country_code3']...
Creating and calling a Function
Single Argument def AFunctionSample(SampleArg): print(SampleArg) AFunctionSample("Hello Wor...
Detect OS Type
Used to detect if OS Type is Windows or macOS Sub GetOSType() 'Get the OS that I am running...
Delete a worksheet
To delete a worksheet titled "Data" Sub DeleteSheet() Application.DisplayAlerts = False 'Rep...
Get user desktop and make a folder
Get user desktop and make a folder Dim DeskTop As String Dim WSH As Object Dim GetDesktopP...
High Precision Timer using Windows API
High Precision Timer using Windows API Private Declare PtrSafe Function QueryPerformanceCounter ...
Add Worksheet if it does not exist
Add a worksheet titled "Data" if it doesn't exist and ignore adding if it already exists Sub Add...
Get current user name
For a computer that is not joined to a domain (Computer Username) Sub Get_Username() 'Get the e...