last cell as label caption
one more Q. how will i go to the last cell in column b and make that the
caption for label1? As for your second item, this will do it... Label1.Caption = Cells(25, "B").Value Rick "pswanie" wrote in message ... i got a few labels on a userform. most of them in a frame. 1) few of them need to show data in sheet1 colum a cell 1 untill empty row 2) other just need to show sheet1 column b cell 25 |
last cell as label caption
maybe
Label1.Caption = Range("B65536").End(xlUp).Value Mike "pswanie" wrote: one more Q. how will i go to the last cell in column b and make that the caption for label1? As for your second item, this will do it... Label1.Caption = Cells(25, "B").Value Rick "pswanie" wrote in message ... i got a few labels on a userform. most of them in a frame. 1) few of them need to show data in sheet1 colum a cell 1 untill empty row 2) other just need to show sheet1 column b cell 25 |
last cell as label caption
because of new limits in Excel 2007 (1 Mega rows) I recommend to do it this
way: Label1.Caption = Cells(Cells.Rows.Count, 2).End(xlUp).Value Vlado "Mike H" wrote: maybe Label1.Caption = Range("B65536").End(xlUp).Value Mike "pswanie" wrote: one more Q. how will i go to the last cell in column b and make that the caption for label1? As for your second item, this will do it... Label1.Caption = Cells(25, "B").Value Rick "pswanie" wrote in message ... i got a few labels on a userform. most of them in a frame. 1) few of them need to show data in sheet1 colum a cell 1 untill empty row 2) other just need to show sheet1 column b cell 25 |
All times are GMT +1. The time now is 03:52 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com