Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help with Macro
Hi,
I am new to macros and I need some help I regularly have to change the reference style from x1A1 to x1R1C1 and back again. So I made the following macro using Ctrl+Shift+T as the keyboard short cut Application.ReferenceStyle = xlR1C1 End Sub Is there a way I can get it to toggle, i.e. each time I press Ctrl+Shift+T it will change to other reference style, if I am in x1A1 it will change to x1R1C1 and vice versa Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help with Macro
This single statement will toggle between the two settings...
Application.ReferenceStyle = (xlR1C1 + xlA1) - Application.ReferenceStyle -- Rick (MVP - Excel) "Simon S" wrote in message ... Hi, I am new to macros and I need some help I regularly have to change the reference style from x1A1 to x1R1C1 and back again. So I made the following macro using Ctrl+Shift+T as the keyboard short cut Application.ReferenceStyle = xlR1C1 End Sub Is there a way I can get it to toggle, i.e. each time I press Ctrl+Shift+T it will change to other reference style, if I am in x1A1 it will change to x1R1C1 and vice versa Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help with Macro
Rick, Great help, thanks
"Rick Rothstein" wrote: This single statement will toggle between the two settings... Application.ReferenceStyle = (xlR1C1 + xlA1) - Application.ReferenceStyle -- Rick (MVP - Excel) "Simon S" wrote in message ... Hi, I am new to macros and I need some help I regularly have to change the reference style from x1A1 to x1R1C1 and back again. So I made the following macro using Ctrl+Shift+T as the keyboard short cut Application.ReferenceStyle = xlR1C1 End Sub Is there a way I can get it to toggle, i.e. each time I press Ctrl+Shift+T it will change to other reference style, if I am in x1A1 it will change to x1R1C1 and vice versa Thanks |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help with Macro
That's a clever one :-)
"Rick Rothstein" wrote in message ... This single statement will toggle between the two settings... Application.ReferenceStyle = (xlR1C1 + xlA1) - Application.ReferenceStyle -- Rick (MVP - Excel) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to copy and paste values (columns)I have a macro file built | Excel Programming | |||
AutoRun Macro with a delay to give user the choice to cancel the macro | Excel Programming | |||
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor | Excel Programming | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |