N
njmike
I'm on a team of four people who create and revise forms all day long
and I've created a number of macros that make our job much easier.
I've passed these along to everybody, as well as instructions on how to
get them to work. The problem we've had up to this point is that
everyone has the macros in different orders with different names, so if
I made a change, I'd have to help everyone individually on where to
find it and make the change. I'm now trying to smooth out the process,
so that when I tweak an older macro or create a new one, each of the
other three users will be able to just copy all of the code and paste
it over their existing code in Visual Basic.
I thought this would be an easy process. I figured that since none of
the individual macro names were changing, that all of the button
assignments would stay in tact. I was only half right. When I tried a
simple copy/paste of all of my macros on my own computer, the buttons
that were previously placed in the toolbar stayed there - and still
worked perfectly. The keyboard assignments, however, were wiped clean.
I tried it a few times - a little different each time - to make sure I
wasn't missing sometihng. When I make a small change to any of the
code, it still works. When I do a quick copy/paste of an entire macro,
its keyboard shortcut does not work.
Is there any way to copy/paste a macro and not lose its keyboard
shortcut? My team will not want to reassign a bunch of macros every
time I make a change.
Maybe even better yet - is there a way to write a macro that will
assign shortcut keys to other macros? That would be perfect.
Thank you in advance for any help you can offer.
- Mike
and I've created a number of macros that make our job much easier.
I've passed these along to everybody, as well as instructions on how to
get them to work. The problem we've had up to this point is that
everyone has the macros in different orders with different names, so if
I made a change, I'd have to help everyone individually on where to
find it and make the change. I'm now trying to smooth out the process,
so that when I tweak an older macro or create a new one, each of the
other three users will be able to just copy all of the code and paste
it over their existing code in Visual Basic.
I thought this would be an easy process. I figured that since none of
the individual macro names were changing, that all of the button
assignments would stay in tact. I was only half right. When I tried a
simple copy/paste of all of my macros on my own computer, the buttons
that were previously placed in the toolbar stayed there - and still
worked perfectly. The keyboard assignments, however, were wiped clean.
I tried it a few times - a little different each time - to make sure I
wasn't missing sometihng. When I make a small change to any of the
code, it still works. When I do a quick copy/paste of an entire macro,
its keyboard shortcut does not work.
Is there any way to copy/paste a macro and not lose its keyboard
shortcut? My team will not want to reassign a bunch of macros every
time I make a change.
Maybe even better yet - is there a way to write a macro that will
assign shortcut keys to other macros? That would be perfect.
Thank you in advance for any help you can offer.
- Mike