Skip to content

Instantly share code, notes, and snippets.

@thoriqmacto
Created October 13, 2014 08:32
Show Gist options
  • Save thoriqmacto/09ff93888969967f97a2 to your computer and use it in GitHub Desktop.
Save thoriqmacto/09ff93888969967f97a2 to your computer and use it in GitHub Desktop.
find the last column used in a particular row
'If you want to find the last column used in a particular row you can use:
Dim lColumn As Long
lColumn = ws.Cells(1, Columns.Count).End(xlToLeft).Column
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment