Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
label caption | Excel Discussion (Misc queries) | |||
Linking Cell to Label Caption | Excel Worksheet Functions | |||
Link Cell to Label Caption | Excel Discussion (Misc queries) | |||
Link cell to Label Caption | Excel Programming | |||
label caption | Excel Programming |