Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-20-2014, 10:04 PM
BobBridges's Avatar
BobBridges BobBridges is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Champaben, my job is heating up just now and I probably won't spend more than a few sentences at a time with you, not as much help as you'll need. Also I don't know anything about GoalSeek—never used it.

But I can answer one of your questions:
Quote:
I have to paste this code in every sheet, is there a way to put it on the work book
The Worksheet_Change subroutine will have to be on every sheet. But you can paste some simple code on every sheet that calls a central subroutine, and have that central subroutine in a common place. That way, whenever you have to change the code, you change it in the central location and all the Worksheet_Change modules, by calling that subroutine, will stay up to date without you having to change each one of them.

I also suspect that only some of that code should be in VBA. Just at a glance, reading your description, it sounds to me as though some of what you're trying to do in VBA would be done more efficiently in worksheet formulae.

Vague generalities like that probably aren't much help to you, I know. But I hope someone else will come back and pay more specific attention. Meanwhile I hope my idea about the Worksheet_Change modules is some help. Feel free to ask more questions to force me to clarify.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
automatic entering of multiple words cliff@tauruscommercial.ca Word 5 06-03-2014 06:06 PM
set daily goal for actual workdays, excluding weekends holidays and days off Brian Reilly Excel 1 01-24-2014 11:56 PM
Excel 2007 - formula or macro/vba code required wrighty50 Excel Programming 3 05-13-2012 02:24 PM
Adding a goal line to a chart uhlersa Excel 1 01-16-2012 08:18 PM
Normal.dot Help? Fatally Corrupted; No Fix. Please Assist. atm0073 Word 2 09-21-2009 04:02 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft