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 Trouble triggering an event when UsedRange =A1500?


Hi all, i am having trouble with the code below, i am trying to get th
event to run if the UsedRange is = Row 1500, i have tried just 150
instead of Range("A1500").............it seems that UsedRange.Row i
always showing 1 even thought there are 2000 lines of data, i am onl
interested in triggering the event if the UsedRange is
A1500..............Any ideas?, I am only interested in triggering th
event if range("A1:A1500") is full the event must not trigger if an
other column is filled up to or past this point, i hav
=VLOOKUP(F2,EventList,2,FALSE) and others in column "I" down to Ro
3000 this is the reason i only wanted to trigger the event if the dat
existed in column A =1500.

One other problem i have is where i delete cells between A2:H1000 an
move cells up the formulae i have in column "I" shows #REF! where it n
longer references the cells i set i.e F2 how can i cure this?


Regards,
Simon

Private Sub Worksheet_Activate()
Dim OriginalSheet
OriginalSheet = ActiveSheet.Name
If UsedRange.Row < Range("A1500") Then
Exit Sub
ElseIf UsedRange.Row = Range("A1500") Then
Application.ScreenUpdating = False
ActiveSheet.Unprotect
Range("A1:I1000").Select
Selection.Copy
Sheets("Summary Sheet").Select
Sheets.Add
ActiveSheet.Paste
Columns("A:I").Select
Columns("A:I").EntireColumn.AutoFit
Application.CutCopyMode = False
ActiveWindow.DisplayGridlines = False
ActiveSheet.Select
ActiveSheet.Tab.ColorIndex = 40
ActiveSheet.Name = "Summary Sheet" & " " & Date
Sheets(OriginalSheet).Select
Application.CutCopyMode = False
Range("A2:I1000").Select
Selection.Delete Shift:=xlUp
ActiveSheet.Protect
End If
Application.ScreenUpdating = True
Call SvSum
End Su

--
Simon Lloy
-----------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...nfo&userid=670
View this thread: http://www.excelforum.com/showthread.php?threadid=56355

 
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
Trouble using UsedRange to trigger an event?? Simon Lloyd[_824_] Excel Programming 6 July 20th 06 03:29 AM
Workbook Open Event not triggering Mike Jerakis[_2_] Excel Programming 3 January 3rd 06 09:12 PM
workbooks.open without triggering event Vobiscum[_3_] Excel Programming 2 June 24th 05 07:21 AM
Triggering an event based on reference Supriya Excel Programming 0 January 29th 04 11:50 AM
Triggering click event of a menu in vba steve Excel Programming 4 August 19th 03 06:17 PM


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