Skip to content

Instantly share code, notes, and snippets.

@Vitosh
Created October 4, 2016 13:48
Show Gist options
  • Save Vitosh/b8ce6b24b0e253be0d91ef7aa90279f5 to your computer and use it in GitHub Desktop.
Save Vitosh/b8ce6b24b0e253be0d91ef7aa90279f5 to your computer and use it in GitHub Desktop.
sub rangeme
dim k as range
set k = cells(1,1)
if cells(1,1) = "" then set k = cells(1,2)
debug.print k.address
end sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment