Solved

Math Final

Posted on 2014-01-13
3
255 Views
Last Modified: 2014-02-02
Hi Expert need not to hard coded formula in code, but Code copy formula from sheet Cell H2 & I2 for Gap & Hit Respectively.

So just in future if I need to change formula better to be in change in cell rather then code.


Thanks
Maths-Final.xlsm
0
Comment
Question by:Naresh Patel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 43

Accepted Solution

by:
Rob earned 500 total points
ID: 39778395
Ok i've modified the macro again, specifically the WriteFormulas sub.  The old one is still there but not used and is now called WriteFormulas1

The WriteFormulas sub now copies the formulas in H1 and I1 to the cells below as required, rather than being hard coded.

I also modified your formulas by wrapping the formula in IFERROR() so that they could be copied to the below cells without error.  If I hadn't done that the formula errors as it references labels at the top of the sheet and the error continues down to the other cells below.
Maths-Final.xlsm
0
 
LVL 8

Author Closing Comment

by:Naresh Patel
ID: 39778408
Thanks
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 39828297
Sir Rob (tagit),

I am about to posting question in 15 min if you are looking in to, question is related to this process, that is why I am approaching you 1st. there is series of 3 question. Source data, Process & location.


Thank You
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question