Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default For Each Sheet in Workbook

Thought I would post the rest of it.

Case Is = 2
For Each Sh In ThisWorkbook.Worksheets
If Sh.Name Like "EDL *" Then
DtRg = Sh.Range("O1").Value
If DtRg = UFdate Then
Select Case True
Case Is = wsData.Range("E20")
Select Case DtRg
Case Is = UFdate
Sh.Range("J23").Value = ""
Sh.Range("H23") = 24
Case Is = UFdate + 1
Sh.Range("J23").Value = ""
Sh.Range("H23") = 24
Case Is = UFdate + 2
Sh.Range("H23").Value = ""
Sh.Range("J23") = 24
Case Is = UFdate + 3
Sh.Range("H23").Value = ""
Sh.Range("J23") = 24
UFdate = UFdate + 4
End Select
Case Is = wsData.Range("E22")
Select Case DtRg
Case Is = UFdate
Sh.Range("H23").Value = ""
Sh.Range("J23") = 24
Case Is = UFdate + 1
Sh.Range("H23").Value = ""
Sh.Range("J23") = 24
UFdate = UFdate + 2
Case Is = UFdate + 2
Sh.Range("J23").Value = ""
Sh.Range("H23") = 24
Case Is = UFdate + 3
Sh.Range("J23").Value = ""
Sh.Range("H23") = 24
UFdate = UFdate + 4
End Select
End Select
End If
End If
Next Sh
End Select



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Copy sheet cells into differnt workbook/sheet, How? IVLUTA Excel Discussion (Misc queries) 2 June 2nd 09 11:16 PM
Aquiring data from one sheet to another sheet in the same workbook No News Excel Worksheet Functions 10 August 1st 06 08:01 AM
Link individual sheet to one sheet in another workbook dfield Excel Discussion (Misc queries) 1 March 12th 06 02:26 AM
Select sheet tabs in workbook & save to separate workbook files stratocaster Excel Worksheet Functions 2 March 1st 06 03:35 PM
I would like to move from sheet to sheet in a workbook using keybo k-cess New Users to Excel 1 April 12th 05 03:23 AM


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