Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default In SelectionChange Make Last Rwo Dynamic

How can the end row be made dynamic as rows are inserted. I could name cell
A12001 as END with the formula =ROW(A12000)

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Worksheets("GLOBAL").Rows("1:12000").Calculate
End Sub

Thank you.

--
Robert
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default In SelectionChange Make Last Rwo Dynamic

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim iRows As Long
iRows = Me.Cells(Me.Rows.Count,"A").End(xlUp).Row
Worksheets("GLOBAL").Rows("1:" & iRows).Calculate
End Sub

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Robert" wrote in message
...
How can the end row be made dynamic as rows are inserted. I could name

cell
A12001 as "END" with the formula =ROW(A12000)

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Worksheets("GLOBAL").Rows("1:12000").Calculate
End Sub

Thank you.

--
Robert



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default In SelectionChange Make Last Rwo Dynamic

Thank you Bob for your speedy assistance as always.
--
Robert



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
How can I make a vLookup dynamic? smonczka Excel Worksheet Functions 1 June 4th 08 03:09 PM
how to make a dynamic workbook? ruchie Excel Discussion (Misc queries) 0 June 6th 07 08:40 PM
Make dynamic charts more dynamic Milo Charts and Charting in Excel 1 April 12th 06 09:01 AM
Can someone help me make this dynamic? Henry Stock Excel Programming 1 February 18th 05 03:58 AM
PivotChart: how to make it dynamic? Valeria Charts and Charting in Excel 1 December 16th 04 01:02 PM


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