VBA – Convert Matrix to Vector

Associated Files Download Links

Convert Matrix to a Vector

This is the opposite tutorial of the Converting a Single Row Vector into a Matrix tutorial.

The following function will take a range as a matrix and convert it to a single column vector:

So for example the vector:

137 convert to vector

Will become:

137 convert to vector v1

Where we have used the following subroutine to print out the vector:

Note that these routines work on both numbers and text.

To download the .XLSM file from this tutorial, click here.

VBA Coding Made Easy

Stop searching for VBA code online. Learn more about AutoMacro – A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users!

alt text

Learn More!

<<Return to VBA Examples

Did you find this VBA tutorial useful? Then share it with your friends and colleagues: