Hotkey problem w/ macro to append comment

G

Guest

I have a macro that opens a comment box for appending. The problem is that
it only works when executed via the Tools, Macro, etc. sequence. If a hotkey
is assigned and used to execute, the macro only adds a blank comment if no
comment existed - but even this isn't open when the macro terminates. I am
using SendKeys "%ie%" to open the comment (and leave it open). Any ideas why
this won't work with a hot key (but does via the toolbar sequence) or
suggestions for another way to accomplish this same thing?
 
D

Dave Peterson

I don't know the technical reasons why it doesn't work--I'd guess Sendkeys
fights with your shortcut key.

But maybe you could add a button to the sheet that's assigned that macro.

Or maybe you could add a button to a toolbar that runs that macro.

Tools|customize|customize tab|macros category
drag the custom button to your favorite toolbar.
Assign your macro to that button.

If you close your workbook, excel will open the workbook with that macro when
you click that icon.

But if you share this workbook (or even rename the workbook), it can become a
maintenance nightmare.

You could build a toolbar on the fly when your workbook opens and delete that
workbook when you close your workbook.

Here's how I do it:
http://groups.google.co.uk/[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top