#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default lastcell

with this code
ActiveCell.SpecialCells(xlCellTypeLastCell).Column i get always the
lastcolumn of the worksheet

I need to get the last column written of each single row in a sheet
How do i get it?

Tya


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default lastcell

Try this

LastRowInColumn = Range("A65536").End(xlUp).Row

Change the A to the row you want

Mike

"Danilo" wrote:

with this code
ActiveCell.SpecialCells(xlCellTypeLastCell).Column i get always the
lastcolumn of the worksheet

I need to get the last column written of each single row in a sheet
How do i get it?

Tya



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default lastcell

no this give me the row, i need column for each row but i found this
Cells(x, Columns.Count).End(xlToLeft).Column


"Mike H" ha scritto nel messaggio
...
Try this

LastRowInColumn = Range("A65536").End(xlUp).Row

Change the A to the row you want

Mike

"Danilo" wrote:

with this code
ActiveCell.SpecialCells(xlCellTypeLastCell).Column i get always the
lastcolumn of the worksheet

I need to get the last column written of each single row in a sheet
How do i get it?

Tya





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
LastCell Howard Excel Programming 5 March 6th 07 09:56 PM
Excel 2007 BUG UsedRange/LastCell differences with Excel2003. keepITcool Excel Discussion (Misc queries) 2 May 31st 06 06:18 PM
lastcell in thiscolumn function error deano Excel Programming 5 December 1st 05 07:45 PM
Dynamic LastCell James Agostinho Excel Programming 4 February 22nd 04 09:08 PM
LastCell Function David Excel Programming 6 December 5th 03 02:51 PM


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