Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default how can I get the maximal used column in the specified row?

I want to append some information to a specified row. I only know using
ctrl+End can get the last cell in the whole sheet, but how about just
the last cell in a row? Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default how can I get the maximal used column in the specified row?

end & down arrow will get you to the last cell before a empty one,
got to a search engine and type in 'excel tips and tricks' and you will
find many pages of short cuts
dave

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default how can I get the maximal used column in the specified row?

I am sorry that I did not state clearly. what I want to do is using VBA
code to do the operation. Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default how can I get the maximal used column in the specified row?

this will give you the last row in column a

lastrow = Worksheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row

so range("A" & lastrow +1) would be the next row to add something

change the sheet and column reference to your need
--


Gary


"lvcha.gouqizi" wrote in message
oups.com...
I want to append some information to a specified row. I only know using
ctrl+End can get the last cell in the whole sheet, but how about just
the last cell in a row? Thanks.



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
divide column(x) by column(y) to give column(x/y) in excel? James New Users to Excel 2 April 24th 23 11:46 AM
Referencing date column A & time column B to get info from column TVGuy29 Excel Discussion (Misc queries) 1 January 24th 08 09:50 PM
Return text in Column A if Column B and Column K match jeannie v Excel Worksheet Functions 4 December 13th 07 07:36 PM
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 [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
How change maximal value in excel for filter (1000) ? Poul New Users to Excel 1 July 27th 06 04:03 PM


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