Google Sheets Apps Script – Dynamic Dependent Dropdown Data Validation Lists

Learn how to assign data validation using Apps Scripts and create dynamic dependent dropdown lists for the whole column for Google Sheets.

Understand How This Script Works

 

Google Sheets Apps Script – Combine Multiple Tabs to a Master Tab When Column Positions Don’t Match

Results of Apps Script tutorial to combine multiple worksheets to a master sheet. It will also work when column positions don’t match.

Understand How This Script Works

Google Sheets Get Distance & Time – GOOGLEMAPS Function

Add the following code to your Apps Script Editor first and then use the function.

How to Use GOOGLEMAPS Function?

Understand How This Script Works

Google Sheets Import JSON – IMPORTJSON Function

Add the following code to your Apps Script Editor first and then use the function.

How to Use IMPORTJSON Function?

Understand How This Script Works

Excel VBA – Set Column Width Exactly the Same in Other Workbooks – How to Code Examples

This Excel macro is useful if you have one or more Excel files where you want to set the column sizes exactly the same as the other workbook.

This script will take the current active (selected) workbook (Excel File) as a reference, get all the column widths from the active sheet (selected tab) and apply exactly the same widths to the active sheets (selected tabs) on all the other open workbooks (Excel files).

This VBA code will only affect active sheets.

Don’t forget to like and share if you found the code useful!

 

 

Posted by Excel Instructor:

http://www.chicagocomputerclasses.com/excel-classes/

Excel VBA – Combine Many Tabs to One Master Worksheet – How to Code Examples

Suppose you have an Excel file with multiple tabs in the following format and you need to combine them to a single master sheet. This can either be a very long and boring copy/paste work or you can speed up the process by using the VBA code further down on this page.

A B C
1 Date Account Amount
2 1/1/2016 484194 $18,006.00
3 1/5/2016 497074 $37,865.00
4 1/9/2016 321592 $19,426.00
5 1/13/2016 784416 $37,348.00
6 1/17/2016 904154 $3,394.00
7 1/21/2016 936320 $25,869.00
8 1/25/2016 596282 $46,453.00
9 1/29/2016 257233 $8,262.00
10 2/2/2016 640688 $20,651.00
11 2/6/2016 169251 $2,652.00
12 2/10/2016 204842 $19,168.00
13 2/14/2016 403114 $38,061.00
14 2/18/2016 932651 $30,586.00
Tab1

 

Don’t forget to like and share if you found the code useful!

 

 

Posted by Excel Instructor:

http://www.chicagocomputerclasses.com/excel-classes/

VBA – Run a PowerPoint Macro using Excel VBA – How to Code Examples

Below is a demonstration of using PowerPoint.Application to open a PowerPoint file and then run a macro that is stored within the PowerPoint file.

  1. Make sure you modify “fullpath\p1.pptm” and point it to the full path-filename to your PowerPoint file.
  2. Modify the macro name. Macro name must be full macro name with file, module and macro name in your PowerPoint file in order for this script to work. Use the following format “p1.pptm!Module1.name”

 

Posted by Excel Instructor:

http://www.chicagocomputerclasses.com/excel-classes/

VBA – Display a File Open Dialog and Open the File – Excel functions

Below is a demonstration of using Application.FileDialog to give the user an option to select a file and then open it. The code is well commented and should be self explanatory.

The full file path will be stored in fullpath variable, which is used later in the code to open the file after making sure there was an Excel file selected.

 

Posted by Excel Instructor:

http://www.chicagocomputerclasses.com/excel-classes/