My Visual Basic skills are long outdated. Is it possible to write a macro that will toggle the Nudge Distance between .125" and 100" ?
I'm sure there could be. What is the application of such a macro?
Did you know you can set different nudge differences and then use them with CTRL and ALT as modification keys?
I do a lot of tedious repetitive work setting up vehicle graphic artwork and it'd speed things up quite a bit if I could simply toggle between the two dimensions I use most often.
How do you use CTRL and ALT to change the nudge distance, that sounds like it may be exactly what I'm looking for.
In x7 (and I think it as in the same place in x6) it is under Tools>Options>Document>Rulers.
See image:
you set your 'nudge as your default movement with the arrow keys, then you set a Super nudge multiplyer that is used by Shift+arrow key and a Micro multiplyer that is accessed by CTRL+arrow key. (I had the wrong keys before)
You could set it to 1 inch, then the super could be by 10 or 100 (10 inches or 100 inches) and your micro could be 8 or 16 (an 8th of an inch or a 16th of an inch).
Thanks, Folks! I was already using Super Nudge but it never occurred to me to use the Micro Nudge as well. A little muscle-memory retraining and I'll be getting through these tedious jobs a bit faster.
Could use vba code with a series of "sendKey" commands to call up the Rulers dialog then tab over to the Nudge setting and input .125 and enter. Say that's macro 1 then macro 2 would be your other value.
I assigned shift+ps to "Page Setup" dialog. Might have to adjust the number of tabs or downs
Sub Nudge1()
Optimization = True
SendKeys "+(ps)"
SendKeys "^(z)"
SendKeys "{TAB 14}"
SendKeys "{DOWN 6}"
SendKeys "{TAB}"
SendKeys (".125")
SendKeys "{ENTER}"
Optimization = False
ActiveWindow.Refresh
End Sub
oops, take out the SendKeys "^(z)"
John, couldn't the macro code I posted be put into a toggle type button? I'm not sure how to go that far though. Or maybe you can get the same result with something a little quicker than the SendKeys method.
Myron
Thank you, Myron. I'll give your macro code a try after I get my project complete. I like your approach since it will allow a number of different presets that could be used for some of the other tedious, repetitive tasks I do.
Myron said: John, couldn't the macro code I posted be put into a toggle type button? I'm not sure how to go that far though. Or maybe you can get the same result with something a little quicker than the SendKeys method. Myron
Hi.
It could. I think Meks answer will work nice for him.
For the toggle you would save to the reg the last used send keys value and do the opposite. Use save/getsettings a native vba function.