LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default question about debug.print

lastrow is a range in this instance, so it would return something like the
following:
$A$1:$A$29

dimming lastrow as long and using this:
lastrow = Cells(Rows.Count, "A").End(xlUp).Row
will give you this:
29


--


Gary


"cush" wrote in message
...
Does this code actually give you a Row (as in LastRow) or does it
return a verticle range in col A??

"Gary Keramidas" wrote:

if i set a variable, for example
Set LastRow = .Range(.Cells(1, "A"), .Cells(Rows.Count, "A").End(xlUp))

can i use debug.print or some other means to show me what lastrow
actually
contains?

--


Gary








 
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
place output of several debug.print statements on the same line [email protected] Excel Programming 1 August 24th 05 08:40 PM
Debug.Print "Test " vbCodeLineNumber & ": " & varName TommySzalapski[_32_] Excel Programming 1 August 2nd 05 05:17 PM
debug.print range "full" address Patti[_2_] Excel Programming 5 July 6th 05 09:27 PM
Debug.Print in a WITH procedure? Toby Erkson[_3_] Excel Programming 4 December 15th 04 10:05 PM
Debug.Print ExcelMonkey[_80_] Excel Programming 1 February 6th 04 04:04 PM


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