LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Check for dated sheet

Mike,

It is not exactly the same, I added a time stamp so that if re-run on the
same day it wouldn't fail on an existing name.

--
HTH

Bob Phillips

wrote in message
...
Bob,
The code you just posted is the exact same as the first one
you posted for me. I only ran it twice to account for the possibility
that someone will enter part of the data, close the workbook and
reopen it a little later. I thought it would be slick to have it
automatically copy the page when opening, as we used to do it
manually. The "Blank" worksheet is just a template sheet with a lot
of formulas, labels ect... I have a habit of partially inputting data
(for shifts 1 and 2) then going back towards the end of the 3rd shift
and entering the rest. If this were in the workbook open event it
would be transparent no matter how many times you open and close it.

Thanks,
Mike

On Thu, 28 Apr 2005 09:04:56 +0100, "Bob Phillips"
wrote:

Mike,

Sounds like you are trying to do it more than once a day. Try this if so

Sub blank1()
Dim oWs As Worksheet
On Error Resume Next
Set oWs = Sheets("Blank")
On Error GoTo 0
If Not oWs Is Nothing Then
oWs.Copy Befo=Sheets(1)
ActiveSheet.Name = Format(Date - 1, "mm-dd-yyyy hh-mm-ss")
End If
End Sub




 
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
Check inputdate, then retrieve data to fill in chart from dated co Kozmik Excel Worksheet Functions 2 February 9th 10 05:15 AM
Check Activesheet for chart sheet or work sheet NSK Charts and Charting in Excel 1 July 17th 07 09:00 PM
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM
how to use sumif function to check date in 1 sheet is < 2 sheet Bharat Saboo Excel Worksheet Functions 3 December 30th 05 07:10 AM
Dated Fields stck2mlon[_23_] Excel Programming 6 June 12th 04 01:32 AM


All times are GMT +1. The time now is 05:43 AM.

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"