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: 19
Default Enter code by a macro

Is it possible to create a macro to enter code via a Macro :

Sub Worksheet_SelectionChange(ByVal Target As Range)
' Enter code here via a Macro?

End Sub


If so how?


I have copied the code to another module named Replace VBA.

But how can i copy the code from there to the WorkSheet_SelectionChange
event by a macro?

I had a mass of code in the Worksheet_SelectionChange event, but found a
copy/paste error was generated because some of the cells were also in the
Worksheet_SelectionChange.

So i figured(IF POSSIBLE), i could have the Worksheet_SelectionChange empty,
until AFTER the Copy/Paste macro is run, then repopulate the
Worksheet_SelectionChange with the code from the ReplaceVBA.


Corey....


 
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
Macro to enter a value, tab to next cell in the row, enter ... FirstVette52 Excel Programming 3 July 10th 09 09:18 PM
Macro to enter a value, tab to next cell in the row, enter ... Jacob Skaria Excel Programming 0 July 10th 09 01:54 PM
NOT ABLE TO ENTER VB CODE SANDIND Excel Programming 1 May 26th 08 04:53 PM
Macro to select cells in column enter data then press enter NP New Users to Excel 1 February 20th 08 04:21 PM
excel - macro code to open a protected sheet, enter passowrd, and then protect sheet arunjoshi[_5_] Excel Programming 1 May 2nd 04 03:50 PM


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