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

Hi,

In my macro i would like to take the current date object and extract the
month value. then convert this (assuming it isn't already in the correct
form) to the form Jan, Feb, Mar, Apr etc. and then compare this to the column
headers that i have. If it matches then a cell should be updated to match
the color of the cell under the matching column header. I am stuck on the
date part because i do not now how to extract the current date using vba, is
it possible?

Any help with other parts would be greatfully recieved.

Thanks, Tom



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default month problem

Dim sStr as String
sStr = Format(date,"mmm")

--
Regards,
Tom Ogilvy


"tom1646" wrote in message
...
Hi,

In my macro i would like to take the current date object and extract the
month value. then convert this (assuming it isn't already in the correct
form) to the form Jan, Feb, Mar, Apr etc. and then compare this to the

column
headers that i have. If it matches then a cell should be updated to match
the color of the cell under the matching column header. I am stuck on the
date part because i do not now how to extract the current date using vba,

is
it possible?

Any help with other parts would be greatfully recieved.

Thanks, Tom





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
Month Sales Problem wchurchi Excel Discussion (Misc queries) 3 December 14th 07 06:17 AM
Problem Calculating Various Month Totals ?? Mhz New Users to Excel 3 August 11th 06 05:58 AM
problem with entering month of the year S S Excel Worksheet Functions 2 June 22nd 06 12:25 AM
Problem with sumproduct and month=1 bobh727 Excel Worksheet Functions 6 February 15th 05 07:13 AM
date/month problem No Name Excel Programming 1 May 12th 04 08:35 AM


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