Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
code module? | Excel Worksheet Functions | |||
code won't run from a module | Excel Discussion (Misc queries) | |||
Unprotect Code Module in Code | Excel Discussion (Misc queries) | |||
code in module A to not execute a Worksheet_SelectionChange sub of another module | Excel Discussion (Misc queries) | |||
copying vba code to a standard code module | Excel Discussion (Misc queries) |