goal seek and problem
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Goal Seek and problem solving excel function using VBA

Goal Seek and problem solving excel function using VBA

resolvedResolved · Medium Priority · Version 2007

replyReply Tue 6 Dec 2011, 17:47Delegate Vivek said...

Vivek has attended:
Excel VBA Intro Intermediate course

Goal Seek and problem solving excel function using VBA

Hello,

What is the general syntax and do we need to include any inbuilt library functions for the same?


Thanks,
Vivek

For upcoming training course dates see: Pricing & availability

replyReply Fri 9 Dec 2011, 11:50Trainer Simon said...

RE: Goal Seek and problem solving excel function using VBA

Hi Vivek,

Thank you for your question and welcome to the forum.

I have attached a spreadsheet with an example of VBA Goal Seek code. When you run the macro via the command button it will prompt you for a goal value(A1) and will then change cell B1 to achieve that goal.


The inbuilt functions are accessed by using the following line of code:

application.worksheetfunction.sum

I have attached a spreadsheet showing you the goal seek example.

I hope this answers your question.

Regards

Simon

Attached files...

Goal Seek VBA.xls

Thu 15 Dec 2011: Automatically marked as resolved.

 

Please browse our web site to find out more about
excel vba training and other Microsoft training courses.

Excel tip:

Viewing Many Worksheets

If there are more worksheets in your workbook than there is room to show all their tabs at the bottom of the screen - Right click on the navigation arrows. A list of all your worksheets is shown. You just click on the one that you want to access. If you have more than 15 worksheets, select in the list and choose your worksheet from hundreds.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard