When writing VBA, one of the most important things is to figure out the table dimension, like figuring out the last row and last column of a table. Using VBA, we can easily write just few lines of code to find the last row and last column index.