LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Determine the last column of data

Question 1:
How can I determine the last column of data that I have imported from a text
file?
The line I came up with is:

LastColumn = Range(Columns.Count & 1).End(xlLeft).Column

But, obviously it doesn't work.

Question 2:
How do I increment characters?

When I write a while loop looking for the first cell with no data, I need to
search
cells A1, B1, C1, etc. How do I increment the letter part of the cell
address.

--
Bryan Kelly
Time is the medium we use to express out priorities.


 
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
Determine a result of one column based on conditions in two column tel703 Excel Discussion (Misc queries) 1 March 25th 10 05:01 PM
How do I determine the last cell in a Column Ayo Excel Discussion (Misc queries) 6 April 27th 09 12:46 PM
delete duplicate record but only determine 1 column data AskExcel Excel Worksheet Functions 3 January 28th 06 01:11 PM
Determine if Value in column A exists in Column B TJKarakowski Excel Discussion (Misc queries) 3 July 19th 05 06:27 PM
formula to determine the first column containing any data sd Excel Worksheet Functions 5 November 9th 04 08:06 PM


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