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: 29
Default Inserting a Code

Hi, I have been working on a Macro from some time now, and I find myself in
some trouble.

I need to insert a condition, which I have done accroding to the "events
change" chapter in cpearson.com

The only problem is that my macro code will now start-out like this:

Sub new_filings()
Private Sub Change(ByVal Target As Excel.Range)
If Target.Address = Worksheets("NEW FILINGS").Range("f2") Then
Application.EnableEvents = False
If Target.Value = 0 Then
'Dim strCnn As String

and I can't get around the error message that goes : "expected End Sub" and
it highlights: "Sub new_filings ()"

Thanks in advance for your help

Alex


 
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
Inserting a Code Jim Thomlinson[_4_] Excel Programming 2 August 29th 05 09:50 PM
Inserting a Code Alex Martins[_2_] Excel Programming 2 August 29th 05 09:49 PM
Inserting a Code Jim Thomlinson[_4_] Excel Programming 0 August 29th 05 09:46 PM
inserting variables in code???? westg Excel Programming 2 August 15th 05 01:00 PM
Code for Inserting Multiple lines Frantic Excel-er Excel Discussion (Misc queries) 0 June 17th 05 06:36 PM


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