Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Last Cell Code

What's the difference in this

Selection.SpecialCells(xlCellTypeLastCell).Select

and this

ActiveCell.SpecialCells(xlLastCell).Select


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Last Cell Code

There is no difference.

the top level qualifier (selection or activecell) has no effect on the
result.

You can also use

Range("A1").SpecialCells(xlCellTypeLastCell).Selec t

Cells.SpecialCells(xlCellTypeLastCell).Select

either of which would give identical results to the two you presented.

--
Regards,
Tom Ogilvy


"Terri" wrote in message
...
What's the difference in this

Selection.SpecialCells(xlCellTypeLastCell).Select

and this

ActiveCell.SpecialCells(xlLastCell).Select




  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Last Cell Code

So the words CellType doesn't need to be in the line of
code to have the same result?
(xlCellTypeLastCell)
or
(xlLastCell)



-----Original Message-----
There is no difference.

the top level qualifier (selection or activecell) has

no effect on the
result.

You can also use

Range("A1").SpecialCells(xlCellTypeLastCell).Sele ct

Cells.SpecialCells(xlCellTypeLastCell).Select

either of which would give identical results to the two

you presented.

--
Regards,
Tom Ogilvy


"Terri" wrote in

message
...
What's the difference in this

Selection.SpecialCells(xlCellTypeLastCell).Select

and this

ActiveCell.SpecialCells(xlLastCell).Select




.

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

Guess I misunderstood what the exact question was.


No, that doesn't make any difference either.

They both resolve to the same constant value:

? xlCellTypeLastCell
11
? xlLastCell
11


--
Regards,
Tom Ogilvy



wrote in message
...
So the words CellType doesn't need to be in the line of
code to have the same result?
(xlCellTypeLastCell)
or
(xlLastCell)



-----Original Message-----
There is no difference.

the top level qualifier (selection or activecell) has

no effect on the
result.

You can also use

Range("A1").SpecialCells(xlCellTypeLastCell).Sele ct

Cells.SpecialCells(xlCellTypeLastCell).Select

either of which would give identical results to the two

you presented.

--
Regards,
Tom Ogilvy


"Terri" wrote in

message
...
What's the difference in this

Selection.SpecialCells(xlCellTypeLastCell).Select

and this

ActiveCell.SpecialCells(xlLastCell).Select




.



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
split post code (zip code) out of cell that includes full address Concord Excel Discussion (Misc queries) 4 October 15th 09 06:59 PM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Excel Discussion (Misc queries) 0 June 29th 09 11:20 AM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Yuvraj Excel Discussion (Misc queries) 0 June 26th 09 06:01 PM
Cell Translation Code [email protected] Excel Programming 3 April 11th 04 04:24 PM
Cell Formula to run VBA code zSplash Excel Programming 7 March 6th 04 12:51 AM


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