Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Formating Data Labels

Hi all

Im trying to update the values in a data entry form. I have set up a
seies of labels and want to update tehm as in the following code. Im
having trouble with the formatting of the numbers. Can I control the
format of the caption text or do I need to use a different method??

If IsNumeric(Selection.Cells.Offset(0, 43).Value) = True Then
Pv.Caption = Selection.Cells.Offset(0, 43).Value
Pv.Caption.Text = Format("0.000")
End If

Regards

Ian
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Formating Data Labels

Hi Ian

Try
Pv.Caption = Format(Selection.Cells.Offset(0, 43).Value, "0.000")

HTH. Best wishes Harald

"Ian Mangelsdorf" skrev i melding
om...
Hi all

Im trying to update the values in a data entry form. I have set up a
seies of labels and want to update tehm as in the following code. Im
having trouble with the formatting of the numbers. Can I control the
format of the caption text or do I need to use a different method??

If IsNumeric(Selection.Cells.Offset(0, 43).Value) = True Then
Pv.Caption = Selection.Cells.Offset(0, 43).Value
Pv.Caption.Text = Format("0.000")
End If

Regards

Ian



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Formating Data Labels



Thanks Hanrold

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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 select all data points/data labels at once (to format)? kippers Charts and Charting in Excel 3 April 4th 23 12:39 PM
Chart Labels - Conditional Formating Scott Charts and Charting in Excel 1 September 13th 08 10:03 AM
Setting hover data labels to cells other than source data Darren Charts and Charting in Excel 1 January 24th 06 10:20 AM
Setting hover data labels to cells other than source data Darren Excel Discussion (Misc queries) 0 January 24th 06 08:31 AM
renaming data labels by different cells than source data Darren Charts and Charting in Excel 4 January 12th 06 10:35 AM


All times are GMT +1. The time now is 09:16 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"