Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Running the second part of a macro only on Thursdays?

Hello All,
Thank you for you quick response...

Thanks,
Lime




"Tom Ogilvy" wrote:

if weekday(date,2) 5 then exit sub
if weekday(date,2) = 4 then ' Thursday
' code for macro 2
else
' code for macro 1
end if

--
Regards,
Tom Ogilvy


"Lime" wrote:

Hello,
I have a macro that I run Monday, Tuesday, Wednesday & Friday. Then I have a
second Macro that I run after I run the one mentioned above. My question can
I paste in the second macro in with the first but only have it run on
Thursdays??

Any help is greatly appreaciated,

Lime

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
Replace Old Part Numbers with New Part Numbers in a Macro. Jeffery Keown Excel Discussion (Misc queries) 5 October 17th 06 03:45 PM
Thursdays dates between 04/16/06 - 05/15/06 Carla Excel Worksheet Functions 9 May 6th 06 05:22 PM
Is there a function to return all Thursdays in a given month/yr Week Dates from nth day of week Excel Worksheet Functions 11 August 11th 05 05:09 AM
Jump Thursdays in a month pankaj_zen Excel Discussion (Misc queries) 10 June 6th 05 02:44 PM
Is it possible to grab just the Mondays-Thursdays of every month? Arlen Excel Discussion (Misc queries) 5 January 4th 05 08:29 PM


All times are GMT +1. The time now is 01:04 AM.

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"