Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default Find Lowest Column Among Several

Just another idea. I asssume you are trying to shrink the range "Accounts"
to fit the last entry. Hopefully you can modify it to fit your needs.

Sub Demo()
Dim LastRow As Long
Const s As String = "Accounts"

With Range(s)
LastRow = .Find("*", .Cells(1), xlValues, xlWhole, xlByRows,
xlPrevious).Row
ActiveWorkbook.Names.Add s, Intersect(Range(s),
Rows(1).Resize(LastRow))

'Test...
[Accounts].Select
End With
End Sub


--
Dana DeLouis
"MDW" wrote in message
...
Say I've got the line

Set objProduction = objCurrent.Worksheets("ACCOUNTS").Range("A4:F600")

in code. On the worksheet "ACCOUNTS", the last entry by the user might be
in
row 23. However, it may be in column A, or column C, or column E.

Is there any way for Excel to detect that, among those 8 columns, the
lowest
used row is 23, and then resize the range?
--
Hmm...they have the Internet on COMPUTERS now!



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 the lowest number in a given column smartin Excel Worksheet Functions 8 June 28th 09 08:01 PM
Find the 10 lowest of 20 numbers in column and enter those 10 in a shred77 Excel Worksheet Functions 14 October 21st 07 09:47 PM
how do i find the lowest number in a column in Excel? MKA808 Excel Discussion (Misc queries) 4 August 23rd 05 07:27 PM
Find Lowest Column Among Several Myrna Larson Excel Programming 0 September 18th 04 12:35 AM
Find Lowest Column Among Several Tom Ogilvy Excel Programming 0 September 17th 04 08:47 PM


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