Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
roadkill
 
Posts: n/a
Default Hotkey problem w/ macro to append comment

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?
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

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/groups?th...5B41%40msn.com

roadkill wrote:

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?


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Editing Macro in Shared Excel File [email protected] Excel Discussion (Misc queries) 1 March 19th 05 06:43 PM
Macro problem Jim New Users to Excel 2 March 16th 05 07:36 PM
Circular Problem needs Macro NICK Excel Discussion (Misc queries) 2 February 1st 05 09:09 AM
Problem executing a macro from different workbook where it is Sergio Calleja Excel Discussion (Misc queries) 1 January 17th 05 12:38 PM
Where to stick macro to change default comment font? [email protected] Excel Discussion (Misc queries) 1 January 1st 05 12:57 AM


All times are GMT +1. The time now is 05:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"