vba

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA

VBA

resolvedResolved · Low Priority · Version 2003

Andrew has attended:
Excel VBA Intro Intermediate course

VBA

Do you have a recommended best practice for an overall structure / approach to coding in VBA. (E.g. The key steps to take when approaching a coding project)

RE: VBA

Hi Andrew

Thanks for your question

This is a massive subject in its own right. Whole books have been written on the subject.

I would suggest the following as a general approach

1. Id the outputs that you require. What data do you need to show
2. Id the inputs, what data will youi start with.
3. List the steps and analysis required to turn your inputs into outputs
4 Break the steps in three above, into a set of discreet operastions and then write the code
5. Finish by building interfaces for your users and formatting tghe data output

Regards

Stephen




 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Creating a range of monthly payments as text

You could use a formula to create a range of payment ie. payment amount for x% to y% rate with fixed terms and principle.

The text that would be "between Xamount and Yamount".

Here is how to do it.

1 Use the PMT function to get your monthly payments figure or whatever frequency of payments that you choose he start range.

See PMT under Excel Help

2. Nest these in the ROUND function to round decimals see ROUND under Excel Help


3. Concatenate this using "&" and concatenate " to " and concatenate "Between ".

4. Concatenate the above to PMT function for the end range

ie.

="Between "&ROUND((PMT1),decimal places)&" and "&ROUND((PMT2),decimal places)

View all Excel hints and tips


Server loaded in 0.07 secs.