Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
jkf jkf is offline
external usenet poster
 
Posts: 12
Default spread sheet

at work we have a spread sheet that we need on a day to day basis, that is
easy enough , but now as it is a 24/7 buisness the powers that be have asked
for each spread sheet to include the 3 shifts ie Days 01.01.01 Lates
01.01.01. Nights 01.01.01

the formula i have been using for the day to day all shift log is

SUB ADDSHEET()

FOR G = 31 TO 1 STEP - 1

SHEETS.ADD.NAME = G & ".10.06"

NEXT G

END SUB

which works great i just ammend it to suit month and number of days in
month.

so question is how do i do it so it will include the 3 shifts for each day
of month

tia
jkf


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,365
Default spread sheet

If you mean that you want a separate worksheet for each day, then add another
loop like this:

Sub ADDSHEET()
For G = 31 To 1 Step -1
For S = 1 To 3
SHEETS.ADD.NAME = G & ".10.06_Shift" & S
Next S
Next G
END SUB

If you want the words as you showed them, then this would do it:
these next two lines will reduce the effort needed to change the code each
month:

Sub ADDSHEET()
Const MonYear = ".10.06"

For G = 31 To 1 Step -1
SHEETS.ADD.NAME ="Nights" & G & MonYear
SHEETS.ADD.NAME ="Lates" & G & MonYear
SHEETS.ADD.NAME ="Days" & G & MonYear
Next G

End Sub

"jkf" wrote:

at work we have a spread sheet that we need on a day to day basis, that is
easy enough , but now as it is a 24/7 buisness the powers that be have asked
for each spread sheet to include the 3 shifts ie Days 01.01.01 Lates
01.01.01. Nights 01.01.01

the formula i have been using for the day to day all shift log is

SUB ADDSHEET()

FOR G = 31 TO 1 STEP - 1

SHEETS.ADD.NAME = G & ".10.06"

NEXT G

END SUB

which works great i just ammend it to suit month and number of days in
month.

so question is how do i do it so it will include the 3 shifts for each day
of month

tia
jkf



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default spread sheet

You have several responses to your other posts.

jkf wrote:

at work we have a spread sheet that we need on a day to day basis, that is
easy enough , but now as it is a 24/7 buisness the powers that be have asked
for each spread sheet to include the 3 shifts ie Days 01.01.01 Lates
01.01.01. Nights 01.01.01

the formula i have been using for the day to day all shift log is

SUB ADDSHEET()

FOR G = 31 TO 1 STEP - 1

SHEETS.ADD.NAME = G & ".10.06"

NEXT G

END SUB

which works great i just ammend it to suit month and number of days in
month.

so question is how do i do it so it will include the 3 shifts for each day
of month

tia
jkf


--

Dave Peterson
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
spread sheet jkf Excel Discussion (Misc queries) 6 October 1st 06 11:37 PM
spread sheet disappears Jolene Excel Discussion (Misc queries) 0 March 23rd 06 08:13 PM
How do I link data from a cell on one spread sheet to another? Richard Deldonna Excel Worksheet Functions 4 March 18th 06 03:28 PM
Can I add more columns to a spread sheet or is limit 256 columns Piper Excel Discussion (Misc queries) 4 October 9th 05 08:27 PM
Does excel recognise names rather than cells? Sue Excel Worksheet Functions 9 May 22nd 05 04:51 AM


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