Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Using A Macro To Add Event Procedure To A CommandButton

Bob, Thanks for trialing the code for me. To get round the memory
error I changed to code to use .InsertLines (which does inc the
+1)(see next post from myself). The code works well for a trial
workbook I used but when I use it on the workbook where I actually
want the new button I get a Run-time error 9 : Subscript Out of Range
when I try and run the With ActiveWorkBook......line.
As far as I can see the with statement doesn't reference anything
particular to my trial file....should I have a dim statement or
something?

I still need to find a way of getting
d="E1" rather than d=E1 in my commandButton code. Any ideas anybody?
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
Using A Macro To Add Event Procedure To A CommandButton Donna[_7_] Excel Programming 4 February 23rd 05 02:44 PM
Using A Macro To Add Event Procedure To A CommandButton [email protected] Excel Programming 1 February 21st 05 10:59 AM
How to write a macro to import an event procedure to ThisWorbook? utdcr Excel Programming 3 February 14th 05 10:25 PM
Using A Macro To Add Event Procedure To A CommandButton Donna[_7_] Excel Programming 1 February 8th 05 11:59 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM


All times are GMT +1. The time now is 09:15 PM.

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

About Us

"It's about Microsoft Excel"