Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default general formatting

I wish to know more about formatting code. For example, by recording a
macro, I can tell that the code below forces a date to appear a
certain way.

"[$-409]mmmm d, yyyy;@"

By recording, copying, and pasting I am usually able get things to
look the way I want. However, I would like to understand this type of
code a little better.

What does the [$-409} do?
What does mmmm do as opposed to mm, or d as oppossed to dd?
What does ;@ mean?

The above questions are meant to be rhetorical. I would rather know
how to learn this information for myself, since the above code is
merely one example.

Thanks all!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default general formatting

409 is the international code, for formatting option, US here.

mmmm gives you the long month name as against mm's 2 digit month number.

The @ is general format for negative numbers, but as this is a date, it
shouldn't be negative.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"A Mad Doberman" wrote in message
...
I wish to know more about formatting code. For example, by recording a
macro, I can tell that the code below forces a date to appear a
certain way.

"[$-409]mmmm d, yyyy;@"

By recording, copying, and pasting I am usually able get things to
look the way I want. However, I would like to understand this type of
code a little better.

What does the [$-409} do?
What does mmmm do as opposed to mm, or d as oppossed to dd?
What does ;@ mean?

The above questions are meant to be rhetorical. I would rather know
how to learn this information for myself, since the above code is
merely one example.

Thanks all!



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 to disable General formatting when opening CSV Cory_Jackson Excel Discussion (Misc queries) 1 February 25th 09 01:05 AM
change formatting from general to date JH Excel Discussion (Misc queries) 2 February 9th 07 03:21 PM
general formatting numbers in excel jclausgirl Excel Discussion (Misc queries) 1 August 30th 06 05:03 PM
Number formatting: General + separator? John Persons Excel Discussion (Misc queries) 12 November 7th 05 08:36 PM
Formatting General to Number RJohnson701CTS Excel Discussion (Misc queries) 7 July 27th 05 04:16 PM


All times are GMT +1. The time now is 03:52 PM.

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"