Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default VBA question

Hello - the syntax

(Target, Range("C1:C3"))

Can 'C3' be expressed as the upper row in the spreadsheet ?

Thanks - Kirk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default VBA question

Wouldn't that upper row be 1?



kirkm wrote:

Hello - the syntax

(Target, Range("C1:C3"))

Can 'C3' be expressed as the upper row in the spreadsheet ?

Thanks - Kirk


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default VBA question

On Sun, 10 Sep 2006 12:34:43 -0500, Dave Peterson
wrote:

Wouldn't that upper row be 1?

I meant the last row in the ss, so the range would cover everything.

Dunno how this appeared here... meant to be a new thread!

Thanks - Kirk




kirkm wrote:

Hello - the syntax

(Target, Range("C1:C3"))

Can 'C3' be expressed as the upper row in the spreadsheet ?

Thanks - Kirk

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA question

Range(Target,cells(rows.count,3).End(xlup))

perhaps.

for context:

Private Sub Worksheet_Change(ByVal Target As Range)
Set rng = Range(Target, Cells(Rows.Count, 3).End(xlUp))
MsgBox rng.Address
End Sub

--
Regards,
Tom Ogilvy

"kirkm" wrote in message
...
On Sun, 10 Sep 2006 12:34:43 -0500, Dave Peterson
wrote:

Wouldn't that upper row be 1?

I meant the last row in the ss, so the range would cover everything.

Dunno how this appeared here... meant to be a new thread!

Thanks - Kirk




kirkm wrote:

Hello - the syntax

(Target, Range("C1:C3"))

Can 'C3' be expressed as the upper row in the spreadsheet ?

Thanks - Kirk



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
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good davegb Excel Programming 1 May 6th 05 06:35 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you [email protected] Excel Programming 0 April 27th 05 07:46 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you [email protected] Excel Programming 23 April 23rd 05 09:26 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you [email protected] Excel Programming 0 April 22nd 05 03:30 PM


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