Solved

Math Final

Posted on 2014-01-13
3
246 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:itjockey
[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:itjockey
ID: 39778408
Thanks
0
 
LVL 8

Author Comment

by:itjockey
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
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…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

733 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