Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Last Entry in Colum

Want to use a macro to find the last entry in a colum that can change every
time its run.
Any ideas or sample code appreciated
Roger


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Last Entry in Colum

Dim LastCol as long

with worksheets("Sheet1")
lastcol = .cells(.rows.count,"A").end(xlup).row
msgbox .cells(lastrow,"A").value
end with

I used column A.

hawk wrote:

Want to use a macro to find the last entry in a colum that can change every
time its run.
Any ideas or sample code appreciated
Roger


--

Dave Peterson
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
how to sum a column only when an entry exists in a different colum Labby Excel Discussion (Misc queries) 7 October 28th 09 12:44 AM
how do I write a formula to select the last entry in a colum Jme Excel Discussion (Misc queries) 1 June 12th 08 05:06 PM
Sum and Offset: to add from a point to the last entry in the colum Ailish Excel Worksheet Functions 5 March 16th 07 05:14 PM
Keeping a sum colum correct after inserting a colum of data in fro hazel Excel Discussion (Misc queries) 3 October 19th 05 09:51 PM
Check data on colum A and find match on colum b Chris(new user) Excel Discussion (Misc queries) 3 March 20th 05 04:45 PM


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