Solved

Math Final

Posted on 2014-01-13
3
259 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

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

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

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

626 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