Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Find Last Column??

Hi Folks,

I use the following to find the last row used:

cells(rows.count, "A").end(xlup).offset(1,0).select

Question: is there a similar step for finding the last Column used starting
from the end of the Column and working back? This, of course, is to avoid an
empty Column from stopping the procedure when searching from left to right.

TIA,

Don
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find Last Column??

for a specific row

cells(1,256).End(xltoLeft).offset(0,1).Select

--
Regards,
Tom Ogilvy


"Don G" wrote in message
...
Hi Folks,

I use the following to find the last row used:

cells(rows.count, "A").end(xlup).offset(1,0).select

Question: is there a similar step for finding the last Column used

starting
from the end of the Column and working back? This, of course, is to avoid

an
empty Column from stopping the procedure when searching from left to

right.

TIA,

Don



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Find Last Column??

Thanks Tom...appreciate the answer.

Don

"Tom Ogilvy" wrote:

for a specific row

cells(1,256).End(xltoLeft).offset(0,1).Select

--
Regards,
Tom Ogilvy


"Don G" wrote in message
...
Hi Folks,

I use the following to find the last row used:

cells(rows.count, "A").end(xlup).offset(1,0).select

Question: is there a similar step for finding the last Column used

starting
from the end of the Column and working back? This, of course, is to avoid

an
empty Column from stopping the procedure when searching from left to

right.

TIA,

Don




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
FInd common data in one column then add number in adjacent column JT Excel Worksheet Functions 3 December 18th 09 10:20 PM
find last row value in column when using MATCH to find column Bouce Excel Worksheet Functions 6 February 6th 08 10:16 PM
Find something in column a then find if column B matches criteria Darrell_Sarrasin via OfficeKB.com Excel Discussion (Misc queries) 8 November 28th 07 09:40 PM
Find max value in one column and return the value of corrosponding cell in different column [email protected] Excel Worksheet Functions 5 October 16th 07 12:33 PM
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM


All times are GMT +1. The time now is 07:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"