Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Footer, "fixed" date

In part of my footer macro, (see below) I need a fixed date
- ie: current date, that does not change when I open the file again
on a different date.
The only time the date should change is when I run the macro again,
at some future time, which I would do after making a change to the form.
Currently I go in every morning and change the date in the macro.
There must be a way to get the current date VALUE only, to accomplish
what I need.


..LeftFooter = "&""Arial,Bold""&8Oct. 26, 2004" & Chr(10) & "JFS"

John F. Scholten
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Footer, "fixed" date

hi,
try replacing the date with now() or today()
now() will add time to the the date where today will just
give the date.
regards
Frank
-----Original Message-----
In part of my footer macro, (see below) I need a fixed

date
- ie: current date, that does not change when I open the

file again
on a different date.
The only time the date should change is when I run the

macro again,
at some future time, which I would do after making a

change to the form.
Currently I go in every morning and change the date in

the macro.
There must be a way to get the current date VALUE only,

to accomplish
what I need.


..LeftFooter = "&""Arial,Bold""&8Oct. 26, 2004" & Chr(10)

& "JFS"

John F. Scholten
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Footer, "fixed" date

Hi
..LeftFooter = "&""Arial,Bold""8 & format(date,"MMM, DD, YYYY") &
Chr(10) & "JFS"


--
Regards
Frank Kabel
Frankfurt, Germany

"John F" schrieb im Newsbeitrag
...
In part of my footer macro, (see below) I need a fixed date
- ie: current date, that does not change when I open the file again
on a different date.
The only time the date should change is when I run the macro again,
at some future time, which I would do after making a change to the

form.
Currently I go in every morning and change the date in the macro.
There must be a way to get the current date VALUE only, to accomplish
what I need.


.LeftFooter = "&""Arial,Bold""&8Oct. 26, 2004" & Chr(10) & "JFS"

John F. Scholten


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 212
Default Footer, "fixed" date

Its just ' Date ' which gives you current date.

.LeftFooter = "&""Arial,Bold""" & Date & Chr(10) & "JFS"

(Note the 3 quote marks after Bold above.)

Sharad

"John F" wrote in message
...
In part of my footer macro, (see below) I need a fixed date
- ie: current date, that does not change when I open the file again
on a different date.
The only time the date should change is when I run the macro again,
at some future time, which I would do after making a change to the form.
Currently I go in every morning and change the date in the macro.
There must be a way to get the current date VALUE only, to accomplish
what I need.


.LeftFooter = "&""Arial,Bold""&8Oct. 26, 2004" & Chr(10) & "JFS"

John F. Scholten



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Footer, "fixed" date

maybe:

..LeftFooter = "&""Arial,Bold""&8" & format(date,"mmm. dd, yyyy") _
& Chr(10) & "JFS"

I don't usually include that period after the Month abbreviation--but that's
just a personal preference.)




John F wrote:

In part of my footer macro, (see below) I need a fixed date
- ie: current date, that does not change when I open the file again
on a different date.
The only time the date should change is when I run the macro again,
at some future time, which I would do after making a change to the form.
Currently I go in every morning and change the date in the macro.
There must be a way to get the current date VALUE only, to accomplish
what I need.

.LeftFooter = "&""Arial,Bold""&8Oct. 26, 2004" & Chr(10) & "JFS"

John F. Scholten


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Footer, "fixed" date

The replies already posted will give you the date, however, if i understand
correctly, you don't want that date to change again for that file. one way
is to have the macro run just when you press a button (ie, controlled by
you); another way is to have it 'flag' a particular cell when it runs for
the first time and have this code in an 'if...then' statement, so if the
cell is already flagged, it does not re-run the code within the 'if...then'
(and therefore does not re-insert a new date)

hope that makes sense!

tim

"John F" wrote in message
...
In part of my footer macro, (see below) I need a fixed date
- ie: current date, that does not change when I open the file again
on a different date.
The only time the date should change is when I run the macro again,
at some future time, which I would do after making a change to the form.
Currently I go in every morning and change the date in the macro.
There must be a way to get the current date VALUE only, to accomplish
what I need.


.LeftFooter = "&""Arial,Bold""&8Oct. 26, 2004" & Chr(10) & "JFS"

John F. Scholten



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
creating a "date selector box" or "pull down box" in a cell GaryK Excel Worksheet Functions 2 September 30th 09 01:45 AM
Convert numbers to date: "586" to read "May 1986" CEckels Excel Worksheet Functions 5 May 14th 09 04:46 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
xy plot line style change when I select "fixed maximum" flobear Charts and Charting in Excel 1 November 17th 07 01:54 PM
Showing "Created by User, Date, Time" in Footer Mark Plaideau Excel Discussion (Misc queries) 0 April 9th 06 11:29 PM


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