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: 193
Default Last Row in Column not working

OK, I am stuck. I have this line of code that was working:

Doesn't work
lnglastrow = xlSheet.Cells(xlSheet.Rows.Count, "A").End(xlUp).Row

Does work
lnglastrow = xlSheet.Cells(xlSheet.Rows.Count, 1).End(xlUp).Row

Now it only works if I replace the "A" with a 1. This is happening
throughout my code where I do not use a column number. Anyone have any
suggestions?

thanks

Terry
 
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
Sort Not Working on Column of Numbers therube Excel Worksheet Functions 4 February 9th 09 01:45 PM
Trying to transpose a row to a column - it is not working - help! MRAWLS Excel Worksheet Functions 4 December 10th 08 03:14 PM
Printing after using column auto fit - not working Caroline Lackey Excel Discussion (Misc queries) 2 June 9th 05 04:50 PM
Working out first and last column and row in a range Peter Rooney Excel Programming 6 April 28th 05 02:22 PM
working by column name Bryan[_11_] Excel Programming 1 August 15th 04 08:37 PM


All times are GMT +1. The time now is 07:14 PM.

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"