Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default 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




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
label caption gramps Excel Discussion (Misc queries) 0 November 1st 07 03:56 PM
Caption Property the dude Excel Discussion (Misc queries) 1 June 1st 06 10:23 AM
Caption No Name Excel Programming 2 September 23rd 04 01:27 PM
caption sensitivity solo_razor[_30_] Excel Programming 2 November 10th 03 06:30 PM
UserForm Caption Soniya Excel Programming 2 October 4th 03 01:53 PM


All times are GMT +1. The time now is 02:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"