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: 53
Default Is it possible after creating a new sheet to insert code in it?

Explanations:

1.I insert sheet

Sheets.Add
ActiveSheet.Name = demo


2.I would like to dynamically insert the following code in the newly created sheet:


Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Call Module35.checkselection(Target)
End Sub

The purpose is to permit a user selection on specific cells.

Thank's in advance
 
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
Prevent insert/delete rows - sheet code Hennie Neuhoff Excel Programming 2 July 5th 09 07:02 AM
Insert Sheet Code J.W. Aldridge Excel Programming 5 August 23rd 06 08:19 PM
how to programmingly insert a new row in excel sheet?(using VB code) david Excel Programming 2 November 26th 03 12:46 AM
VBA code to insert images in excel sheet Riya Excel Programming 2 October 29th 03 12:22 PM
How do I insert/update VBA code into a sheet? (using a CLS file?) Chip Pearson Excel Programming 0 September 14th 03 10:37 PM


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

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"