LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Execute VBA macro whilst editing a cell

Hi all,

I'm having a few problems with some prototyping for some code we're
hopefully planning on putting in place for a customer.

What I'm trying to do is, given a macro that does something like:
Code:
--------------------
SendKeys "+{END}" ' shift-end
SendKeys "^X" ' cut to clipboard
--------------------
Execute that macro whilst the cursor is inside a cell of text. So, in
the case of a cell with the text "foo bar" and the cursor flashing
merrily away inbetween the two words, in theory select the text "bar"
and cut it to the clipboard. I'm still prototyping so forgive the
disgusting VBA hack :)

The problem seems to be that I can't execute a macro whilst a cell is
being edited. Even if I hotkey the macro or tie it to a menu bar, it
still doesn't execute.

Has anyone tried to do this before - and succeeded? Or should I be
happy that we're still roughing up some ideas and give up?

Thanks in advance.

Andy Belfield
Melandra


---
Message posted from http://www.ExcelForum.com/

 
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
How do I execute a macro based on the value of a cell in Excel? brettopp Excel Discussion (Misc queries) 12 June 17th 06 01:27 AM
Highlighting cells whilst editing Loonia Excel Discussion (Misc queries) 1 February 17th 06 02:00 AM
How can I run a macro in the background whilst a UserForm is visib cdb Excel Discussion (Misc queries) 3 February 10th 05 06:58 PM
Display a message whilst a macro runs steve Excel Programming 0 October 29th 03 07:37 PM
Display a message whilst a macro runs Tom Ogilvy Excel Programming 0 October 29th 03 12:43 PM


All times are GMT +1. The time now is 02:59 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"