Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a VBA Function that will give me the last used
column and row? Or what suggestions does anybody have? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Courtesy of John Peltier in an earlier post........
This tells me the address of the highest nonblank cell in column C: Range("$C$65536").End(xlup).Address This tells you the row: Range("$C$65536").End(xlup).Row "Pubert" wrote in message ... Is there a VBA Function that will give me the last used column and row? Or what suggestions does anybody have? ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =--- |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Pubert" wrote in message ...
Is there a VBA Function that will give me the last used column and row? Or what suggestions does anybody have? lastRow = Cells(rows.Count, ActiveCell.Column).End(xlUp).row lastColumn = Cells(ActiveCell.row, Columns.Count).End(xlToLeft).Column |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
divide column(x) by column(y) to give column(x/y) in excel? | New Users to Excel | |||
Referencing date column A & time column B to get info from column | Excel Discussion (Misc queries) | |||
Return text in Column A if Column B and Column K match | Excel Worksheet Functions | |||
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look | Excel Discussion (Misc queries) | |||
formula : =(column A)+(column B)-(column C). Why won't it work? | Excel Discussion (Misc queries) |