Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default DDE Command to Format Cell

DDE requires you to use Excel 4.0 macro commands

the one you are looking for is

FORMAT.NUMBER(format_text)

the following information is from the MACROFUN help file available from
http://support.microsoft.com/default...NoWebContent=1

Macro Sheets Only
Equivalent to choosing the Number tab in the Format Cells dialog box, which
appears when you choose Cells from the Format menu. Formats numbers, dates,
and times in the selected cells, data labels, and axis labels on charts. Use
FORMAT.NUMBER to apply built-in formats or to create and apply custom
formats.

Syntax

FORMAT.NUMBER(format_text)
FORMAT.NUMBER?(format_text)
Format_text is a format string, such as "#, ##0.00", specifying which
format to apply to the selection.


an alternative is to use the xl4 macro command to run a vba macro - see
http://www.pace.edu/nesug/proceeding.../cc/Cc4016.pdf
for more info.

Hope this helps,
Lynn S
"Ron Louzon" wrote in message
...
What is the DDE command to format an Excel cell? I want
to format a cell with NumberFormat="0.00". How do I do
this via DDE? I tried

[SELECT("R10C5")][Selection.NumberFormat("0.00")]
[SELECT("R10C5")][Cells.NumberFormat("0.00")]
[SELECT("R10C5")][Select.NumberFormat("0.00")]

but none of this works....obviously.

thanks,
Ron



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default DDE Command to Format Cell

Lynn,

That is exactly what I was looking for and it befuddles me
as to why Microsoft wouldn't include those files with
Excel.

Thanks,
Ron

-----Original Message-----
DDE requires you to use Excel 4.0 macro commands

the one you are looking for is

FORMAT.NUMBER(format_text)

the following information is from the MACROFUN help file

available from
http://support.microsoft.com/default.aspx?

scid=http://support.microsoft.com:80/support/kb/articles/Q1
28/1/85.ASP&NoWebContent=1

Macro Sheets Only
Equivalent to choosing the Number tab in the Format Cells

dialog box, which
appears when you choose Cells from the Format menu.

Formats numbers, dates,
and times in the selected cells, data labels, and axis

labels on charts. Use
FORMAT.NUMBER to apply built-in formats or to create and

apply custom
formats.

Syntax

FORMAT.NUMBER(format_text)
FORMAT.NUMBER?(format_text)
Format_text is a format string, such as "#, ##0.00",

specifying which
format to apply to the selection.


an alternative is to use the xl4 macro command to run a

vba macro - see
http://www.pace.edu/nesug/proceeding...0/cc/Cc4016.pd

f
for more info.

Hope this helps,
Lynn S
"Ron Louzon" wrote in

message
...
What is the DDE command to format an Excel cell? I want
to format a cell with NumberFormat="0.00". How do I do
this via DDE? I tried

[SELECT("R10C5")][Selection.NumberFormat("0.00")]
[SELECT("R10C5")][Cells.NumberFormat("0.00")]
[SELECT("R10C5")][Select.NumberFormat("0.00")]

but none of this works....obviously.

thanks,
Ron



.

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
One command in one cell initiating another command in another cel. Chas52 Excel Worksheet Functions 3 November 7th 09 06:57 PM
Nesting the ROW() command into a Conditional Format Formula ahalford Excel Worksheet Functions 4 November 6th 08 06:00 PM
Format the command for the Currency button Murray[_3_] Excel Discussion (Misc queries) 4 July 30th 08 08:37 PM
Format Cell command will not function Phil Excel Discussion (Misc queries) 1 January 24th 08 03:47 PM
DDE Command to Format Cell jaf Excel Programming 1 July 9th 03 05:10 PM


All times are GMT +1. The time now is 09:45 AM.

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

About Us

"It's about Microsoft Excel"