Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro that outputs the following line on an Excel spreadsheet:
2260.54 is the amount for your group. The code is as follows: activecell.offset (0,5) = vGrpAmt & " is the amount for your group" I would like for it to display as follows: $ 2,260.54 is the amount for your group. I'm having trouble getting the dollar sign and commas to display in the output. Any suggestions would be appreciated. Thanks for the help......... -- JT |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() ActiveCell.Offset(0, 5) = Format(vGrpAmt, "$0,000.00") & " is the amount for your group" "JT" wrote: I have a macro that outputs the following line on an Excel spreadsheet: 2260.54 is the amount for your group. The code is as follows: activecell.offset (0,5) = vGrpAmt & " is the amount for your group" I would like for it to display as follows: $ 2,260.54 is the amount for your group. I'm having trouble getting the dollar sign and commas to display in the output. Any suggestions would be appreciated. Thanks for the help......... -- JT |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way:
ActiveCell.Offset(0, 5).Value = Format(vGrpAmt, _ "$ #,##0.00 ""is the amount for your group""") In article , "JT" wrote: I have a macro that outputs the following line on an Excel spreadsheet: 2260.54 is the amount for your group. The code is as follows: activecell.offset (0,5) = vGrpAmt & " is the amount for your group" I would like for it to display as follows: $ 2,260.54 is the amount for your group. I'm having trouble getting the dollar sign and commas to display in the output. Any suggestions would be appreciated. Thanks for the help......... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
activecell.offset (0,5) _
= format(vGrpAmt, "$ #,###.00") & " is the amount for your group" or something close to that. JT wrote: I have a macro that outputs the following line on an Excel spreadsheet: 2260.54 is the amount for your group. The code is as follows: activecell.offset (0,5) = vGrpAmt & " is the amount for your group" I would like for it to display as follows: $ 2,260.54 is the amount for your group. I'm having trouble getting the dollar sign and commas to display in the output. Any suggestions would be appreciated. Thanks for the help......... -- JT -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
WS.Range("A2").Value = FormatCurrency(vGrpAmt) & " is the amount for your
group." Changing WS.Range("A2").Value to whatever is your cell. Bill Horton "JT" wrote: I have a macro that outputs the following line on an Excel spreadsheet: 2260.54 is the amount for your group. The code is as follows: activecell.offset (0,5) = vGrpAmt & " is the amount for your group" I would like for it to display as follows: $ 2,260.54 is the amount for your group. I'm having trouble getting the dollar sign and commas to display in the output. Any suggestions would be appreciated. Thanks for the help......... -- JT |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional Formatting of Checklist with several date variables | Excel Worksheet Functions | |||
Conditional formatting with variables | Excel Worksheet Functions | |||
Conditional formatting for more than 3 variables | Excel Worksheet Functions | |||
Number Formatting with string variables | Excel Programming | |||
Cell formatting with 2 variables | Excel Programming |