#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 181
Default useform label enter

I posted this question earlier but it does not show up so I will post it
again. Hope now it does shows up.

I need to assign two cells value to a label in a userform but would like to
display each cell value in a different row.

Me.Label5 = range("A1").value & range ("B1").value

If I jsut do above it will display

ECR12345 where ECR is value on Cell A1 and 12345 value on cell B1

I need to display as follows
ECR
12345

I do not want to assign a cell value to a diferent label because some time a
cell value will be quite long so it might take more than a row.

E.g.

ECR description will
be the length of the
value
12345

Where "ECR description will be the length of the value" is A1
and 12345 is B1

So I need an enter character so it will go over next line before it shows B1.
Can it be done?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default useform label enter

Try

Me.Label5 = range("A1").value & vbCr & range ("B1").value

--
Kind regards

Rik


"Alberto Ast" wrote:

I posted this question earlier but it does not show up so I will post it
again. Hope now it does shows up.

I need to assign two cells value to a label in a userform but would like to
display each cell value in a different row.

Me.Label5 = range("A1").value & range ("B1").value

If I jsut do above it will display

ECR12345 where ECR is value on Cell A1 and 12345 value on cell B1

I need to display as follows
ECR
12345

I do not want to assign a cell value to a diferent label because some time a
cell value will be quite long so it might take more than a row.

E.g.

ECR description will
be the length of the
value
12345

Where "ECR description will be the length of the value" is A1
and 12345 is B1

So I need an enter character so it will go over next line before it shows B1.
Can it be done?
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
how to display a graph on the useform thru excel vba ? Nader Charts and Charting in Excel 2 November 9th 06 01:09 PM
How to rezize data label box in pie charts (label wraps to two lin rolliedogg Charts and Charting in Excel 1 October 18th 06 08:17 PM
Listbox on a useform ingleg Excel Discussion (Misc queries) 4 July 6th 06 09:27 AM
COPY LABEL FORM FROM EXCEL TO A LABEL xrayAndi New Users to Excel 1 March 5th 06 02:21 PM
useform autosize to fullscreen problem Pierre via OfficeKB.com Excel Worksheet Functions 1 November 3rd 05 10:03 AM


All times are GMT +1. The time now is 05:24 PM.

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"