LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Consolidating module code

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
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
code module? Kat Excel Worksheet Functions 2 January 10th 09 03:10 AM
code won't run from a module Geoff Excel Discussion (Misc queries) 3 February 20th 07 08:08 PM
Unprotect Code Module in Code Damien Excel Discussion (Misc queries) 2 April 18th 06 03:10 PM
code in module A to not execute a Worksheet_SelectionChange sub of another module Jack Sons Excel Discussion (Misc queries) 4 December 11th 05 11:52 PM
copying vba code to a standard code module 1vagrowr Excel Discussion (Misc queries) 2 November 23rd 05 04:00 PM


All times are GMT +1. The time now is 07:19 PM.

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"