Home > Excel Tutorial > Excel Vba Column Hiding-Unhiding With Horizontal Form

Excel Vba Column Hiding-Unhiding With Horizontal Form

         In the previous tutorial, we were finding the last used column according to the first row of columns. The used code that to find last used column :

“lst_column = ActiveSheet.Cells(1, Columns.Count).End(xlToLeft).Column”

Any value in the first row may not always be . Values may be in bottom rows. For this reason, we created the following code to find last used column in this template :

“lst_column = ActiveSheet.UsedRange.Columns(ActiveSheet.UsedRange.Columns.Count).Column”

excel column hide unhide

Download Example File

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: