Skip to content

Instantly share code, notes, and snippets.

@jakelosh
Created June 24, 2013 16:31
Show Gist options
  • Save jakelosh/5851415 to your computer and use it in GitHub Desktop.
Save jakelosh/5851415 to your computer and use it in GitHub Desktop.
ToggleR1C1 allows you to toggle back and forth between R1C1 notation in Excel and A1 notation. I like to assign this macro to the keyboard shortcut CTRL + SHIFT + R
Public Sub ToggleR1C1()
If Application.ReferenceStyle = xlR1C1 Then
Application.ReferenceStyle = xlA1
Else
Application.ReferenceStyle = xlR1C1
End If
End Sub
@timbledum
Copy link

Thanks for this! Works a treat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment