+ Reply to Thread
Results 1 to 3 of 3

Formatting decimal to show in a cell comment with VBA

  1. #1
    Bobby
    Guest

    Formatting decimal to show in a cell comment with VBA

    Can anyone help? This is my current code:

    Range("F11").Comment.Text Text:=" " & Range("F12")

    The F12 cell is define as a number with 2 decimal(i.e.: 4.60)

    If the number that is assign is 4.60 as an example, the result looking
    at the comment cell F11 is 4.6 the zero is always missing.

    Thank's ahead!


  2. #2
    Niek Otten
    Guest

    Re: Formatting decimal to show in a cell comment with VBA

    Range("F11").Comment.Text Text:=" " & format(Range("F12"),"0.00")

    --
    Kind regards,

    Niek Otten


    "Bobby" <[email protected]> wrote in message
    news:[email protected]...
    > Can anyone help? This is my current code:
    >
    > Range("F11").Comment.Text Text:=" " & Range("F12")
    >
    > The F12 cell is define as a number with 2 decimal(i.e.: 4.60)
    >
    > If the number that is assign is 4.60 as an example, the result looking
    > at the comment cell F11 is 4.6 the zero is always missing.
    >
    > Thank's ahead!
    >




  3. #3
    Bobby
    Guest

    Re: Formatting decimal to show in a cell comment with VBA

    Thank's again Niek


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1