Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
I.P I.P is offline
external usenet poster
 
Posts: 5
Default Day of month

I have a program which needs a day of month eg. if the action happens
every wednesday in July it would show 5th 12th 19th 26th or if it is
every wednesday and friday it would show 5th 7th 12th 14th 19th 21st
26th 28th. I can get this result with a complicated combination of
spread sheet formulas and several macro'smacro's. Is it possible to get
the result just with a macro ?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Day of month

Hi, here is short and not full example:

Sub DayOfWeek()
Select Case Weekday(Date)
Case 4
MsgBox "Thursday"
Case 6
MsgBox "Friday"
Case 7
MsgBox "Saturday"
Case 1
MsgBox "Sunday"
End Select
End Sub

Henrich

€žI.P" napĂ*sal (napĂ*sala):

I have a program which needs a day of month eg. if the action happens
every wednesday in July it would show 5th 12th 19th 26th or if it is
every wednesday and friday it would show 5th 7th 12th 14th 19th 21st
26th 28th. I can get this result with a complicated combination of
spread sheet formulas and several macro'smacro's. Is it possible to get
the result just with a macro ?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Day of month

MsgBox Weekday(Now())=vbWednesday

NickHK

"I.P" wrote in message
oups.com...
I have a program which needs a day of month eg. if the action happens
every wednesday in July it would show 5th 12th 19th 26th or if it is
every wednesday and friday it would show 5th 7th 12th 14th 19th 21st
26th 28th. I can get this result with a complicated combination of
spread sheet formulas and several macro'smacro's. Is it possible to get
the result just with a macro ?



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
excel to make the days cary over month to month automaticly GARY New Users to Excel 1 April 19th 08 06:05 PM
Excel 2003 month to month data change grid Chad[_2_] Excel Discussion (Misc queries) 2 February 15th 08 01:36 AM
copy worksheet from previous month and rename to current month Dan E. Excel Programming 4 December 8th 05 09:40 PM
transfer cell $ amount to other sheet month-to-month without overc Colin2u Excel Discussion (Misc queries) 1 July 28th 05 02:36 AM
Fill column with dates of month depending on month in A1 [email protected] Excel Programming 7 March 11th 05 12:41 AM


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