P
Phil Hageman
I administer 40 Excel workbooks, all alike, on a network.
The only difference among the workbooks is the data in
them. There are seven worksheets in each workbook, of
which four worksheets are exactly alike. In those four
worksheets (tab named Customer, Finance, Learning,
Processes) I have to impose the effect of this code:
If [M15] <= [M16] Then
MsgBox "In the first strategy: Target cannot be
greater than, or equal to Chart Max"
ElseIf [M47] <= [M48] Then
MsgBox "In the second strategy: Target cannot be
greater than, or equal to Chart Max"
ElseIf [M79] <= [M80] Then
MsgBox "In the third strategy: Target cannot be
greater than, or equal to Chart Max"
........etc.
By itself, this code does what I want it to do.
Here is what I need:
1.) I want to place the code in each workbook's module
(there is only one module), so that it operates on the
four specified worksheets.
2.) The code should require correction of incorrect data
entry before the user is allowed to leave the worksheet.
3.) If you see additional improvements in this code,
please suggest - I am not a programmer
Thanks, Phil
The only difference among the workbooks is the data in
them. There are seven worksheets in each workbook, of
which four worksheets are exactly alike. In those four
worksheets (tab named Customer, Finance, Learning,
Processes) I have to impose the effect of this code:
If [M15] <= [M16] Then
MsgBox "In the first strategy: Target cannot be
greater than, or equal to Chart Max"
ElseIf [M47] <= [M48] Then
MsgBox "In the second strategy: Target cannot be
greater than, or equal to Chart Max"
ElseIf [M79] <= [M80] Then
MsgBox "In the third strategy: Target cannot be
greater than, or equal to Chart Max"
........etc.
By itself, this code does what I want it to do.
Here is what I need:
1.) I want to place the code in each workbook's module
(there is only one module), so that it operates on the
four specified worksheets.
2.) The code should require correction of incorrect data
entry before the user is allowed to leave the worksheet.
3.) If you see additional improvements in this code,
please suggest - I am not a programmer
Thanks, Phil