+ Reply to Thread
Results 1 to 4 of 4

Run macro every 1st or end of month

Hybrid View

smalltime Run macro every 1st or end of... 02-01-2010, 03:54 AM
JeanRage Re: Run macro every 1st or... 02-01-2010, 04:34 AM
smalltime Re: Run macro every 1st or... 02-02-2010, 10:14 PM
SarahPintal Re: Run macro every 1st or... 02-02-2010, 10:32 PM
  1. #1
    Registered User
    Join Date
    08-06-2009
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    32

    Run macro every 1st or end of month

    I want to run macro every first and end of month, it is possible?

    A cell in my worksheet has date in it.

    TIA

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Run macro every 1st or end of month

    Hi,

    Yes, it is possible with an event macro ...such as
    Private Sub Workbook_Open()
    to be stored in ThisWorkbook

    HTH

  3. #3
    Registered User
    Join Date
    08-06-2009
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Run macro every 1st or end of month

    how is the code?

  4. #4
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    Re: Run macro every 1st or end of month

    Maybe something like

    Sub EventChange()
    With Sheets("Sheet1")
    If .Range("A1").Value = 1  Then
    
    XYZ <--- this is where you put the macro data.. or call the sub
    
    End If
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1