ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   format caption (https://www.excelbanter.com/excel-programming/312138-format-caption.html)

newbie

format caption
 
Hi,

I am using the following code to provide a sequential reference on a userform:
Label5.Caption = 0.0001 + Application.max(Sheets("Notes").Columns(1))
Problem is that if the reference should be 2004.0010, it is displayed on the
form as 2004.001.
Can anyone help me with the syntax to format the caption?
TIA

Bob Phillips[_6_]

format caption
 
Label5.Caption = Format(0.0001 +
Application.max(Sheets("Notes").Columns(1)),""0000 .0000")


--

HTH

RP

"Newbie" wrote in message
...
Hi,

I am using the following code to provide a sequential reference on a

userform:
Label5.Caption = 0.0001 + Application.max(Sheets("Notes").Columns(1))
Problem is that if the reference should be 2004.0010, it is displayed on

the
form as 2004.001.
Can anyone help me with the syntax to format the caption?
TIA




newbie

format caption
 
Thanks Bob.

"Bob Phillips" wrote:

Label5.Caption = Format(0.0001 +
Application.max(Sheets("Notes").Columns(1)),""0000 .0000")


--

HTH

RP

"Newbie" wrote in message
...
Hi,

I am using the following code to provide a sequential reference on a

userform:
Label5.Caption = 0.0001 + Application.max(Sheets("Notes").Columns(1))
Problem is that if the reference should be 2004.0010, it is displayed on

the
form as 2004.001.
Can anyone help me with the syntax to format the caption?
TIA






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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com