Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Paul B" wrote in message ... Bob, that works just like I need, thanks very much, That's great, I am pleased. I did not spot the lack of the space in the worksheet name but you were right there was a space in it, after some thinking I modified it some to take care of the sheet changing names next year and also added a date for the labor sheet so it can be saved each day, the code I used was this, don't know if it's the best way but it works :) , is this a good way to reference the day and year or is there a better way? For the labor sheet Const DATEFORMAT As String = "mm.dd.yyyy" Set oWbLabor = Workbooks("Daily Labor For " & Format(Now, DATEFORMAT) & ".xls") That's exactly how I would do it Paul (and I like the use of a constant<vbg) Now if I can just decipher HOW your code works :). Thanks again Paul B There is nothing cunning or particularly clever there, it is just highly structured code (cough, cough, splutter !"£$%^^), and I have seen many of your posting replies so I don't think you will have any trouble. Just sit down when you have a quiet period with a nice stiff gin martini (one glass full of gin, vermouth in the same room but not the same glass, preferably Bombay Sapphire or Plymouth gin), or a margarita,, or whatever your poison is, and work your way slowly through it. The alcohol won't help at all, but it will be enjoyable. And by the way, I have XL97 and XL2000 (even got XP now) on my home desktop machine so I have tried it with 97 as well as with 2000. Only a fairly cursory test, but I didn't see any problems. There is no XL2000 specific code that I am aware of (not ever sure what is XL2000 specific, SPLIT maybe but not much), so I didn't anticipate it being a problem and I don't think it is. Anyway, see you around some more. Best Regards Bob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Modify code | Excel Discussion (Misc queries) | |||
modify a line code | Excel Discussion (Misc queries) | |||
Modify Code | Excel Worksheet Functions | |||
automation code | Excel Discussion (Misc queries) | |||
How to modify the code for different type of input? | Excel Worksheet Functions |