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


Hi,

I'm writing a macro that edits the footer, and as part of the footer, I
wanted to include the current year, preferably as a variable. If
possible, what is the variable I can use to get the year, and if not,
is ther another solution? Thanks.

Raman


--
Raman325
------------------------------------------------------------------------
Raman325's Profile: http://www.excelforum.com/member.php...o&userid=24748
View this thread: http://www.excelforum.com/showthread...hreadid=542655

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Get Current Year

Raman

Dim iYear as Integer
iYear = Year(Now)

Regards

Trevor


"Raman325" wrote in
message ...

Hi,

I'm writing a macro that edits the footer, and as part of the footer, I
wanted to include the current year, preferably as a variable. If
possible, what is the variable I can use to get the year, and if not,
is ther another solution? Thanks.

Raman


--
Raman325
------------------------------------------------------------------------
Raman325's Profile:
http://www.excelforum.com/member.php...o&userid=24748
View this thread: http://www.excelforum.com/showthread...hreadid=542655



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
Current year and current week number Grey Old Man[_2_] Excel Discussion (Misc queries) 11 December 8th 09 06:30 PM
Always show Jan of current year Keyrookie Excel Worksheet Functions 2 December 2nd 09 04:44 PM
use current year in macro mohavv Excel Discussion (Misc queries) 1 January 8th 08 09:44 PM
Combination Graph with current year and prior year sales JanW Charts and Charting in Excel 2 April 5th 07 09:20 PM
How to compare current year to prior year in bar chart? substring Charts and Charting in Excel 4 May 12th 05 07:04 PM


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

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"