Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I need to find the column number of the last entry in a row. I tried this but
it doesn't seem to work MaxA = Sheets("A Grade").Cells(Columns.Count, "5").End(xlLeft).Column I'm trying to find the column address of the last entry in the 5th row down. Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
the below will give you the column number of the last entry in Row 1
lngLastCol = ActiveSheet.Cells(1, Columns.Count).End(xlToLeft).Column If this post helps click Yes --------------- Jacob Skaria "NDBC" wrote: I need to find the column number of the last entry in a row. I tried this but it doesn't seem to work MaxA = Sheets("A Grade").Cells(Columns.Count, "5").End(xlLeft).Column I'm trying to find the column address of the last entry in the 5th row down. Thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() NDBC, Try: Code: -------------------- Dim MaxA As Long MaxA = Sheets("A Grade").Cells(5, Columns.Count).End(xlToLeft).Column -------------------- Have a great day, Stan -- stanleydgromjr ------------------------------------------------------------------------ stanleydgromjr's Profile: http://www.thecodecage.com/forumz/member.php?userid=503 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=118352 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Stanley, I had already modified Jacobs code to that. Thanks again
Jacob. I'm starting to wonder if you ever sleep. "stanleydgromjr" wrote: NDBC, Try: Code: -------------------- Dim MaxA As Long MaxA = Sheets("A Grade").Cells(5, Columns.Count).End(xlToLeft).Column -------------------- Have a great day, Stan -- stanleydgromjr ------------------------------------------------------------------------ stanleydgromjr's Profile: http://www.thecodecage.com/forumz/member.php?userid=503 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=118352 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
seperate components of a whole address entry | Excel Discussion (Misc queries) | |||
VB code to determine address of activeworkbook | Excel Discussion (Misc queries) | |||
How to determine the column letter from Cell address | Excel Worksheet Functions | |||
automatic address and phone cell entry | Excel Worksheet Functions | |||
Determine if Cell Address is within a Range | Excel Worksheet Functions |