vba goal seek
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 » VBA Goal Seek

VBA Goal Seek

resolvedResolved · High Priority · Version 2003

replyReply Tue 26 May 2009, 15:23Delegate Kerry said...

Kerry has attended:
Excel Advanced course

VBA Goal Seek

Hi,

I'm hoping someone can help me. I've written a basic goal seek macro but what i need to be able to do is save the value of the cell that is being changed before the goal seek is applied (variable x in the example below). In the next stage of this program, I need to be able to use the difference between this value pre and post goal seek but can only do this if the macro can recognise the value of this variable before it is changed during the goal seek function.

So far my macro reads as follows:


Sub MaxHedgeRate()

Application.ScreenUpdating = False

Set x = Range("LoanMargin")
Set y = Range("ICRCovenant")
Set z = Range("MinICR")

z.GoalSeek Goal:=y, ChangingCell:=x

End Sub

Any help would be greatly appreciated.

Thanks,

Kerry

For upcoming training course dates see: Pricing & availability

replyReply Mon 1 Jun 2009, 16:33Trainer Jacob said...

RE: VBA Goal Seek

Hi Kerry

Thanks for your post, one of our VBA trainers has reviewed your request and as it does fall outside the scope of this forum are 2 options to resolve this.

Option 1: Quick fix; you send us your working files for our review and we can confirm if we can create a solution, bear in mind one of us may need to take some time to achieve this so there might be a related cost. We will notify you if there will be and you can decide if you wish to proceed.

Option 2: Learn how to create a solution yourself for this particular case and others by attending our 2 day Excel VBA introduction course, please click here for more information.

regards

Jacob

 

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

Excel tip:

Rotating Text in an Excel 2010 Worksheet

Maybe you want to draw attention to certain text or you just simply want to make your worksheet look more exciting!

One of the things you might consider is, rotating the text in a particular cell or set of cells.

1) Select a cell you would like to rotate
2) Click the ''Home'' tab in the Ribbon
3) Click ''orientation'' in the ''Alignment'' section
4) A pop up menu will appear with a few choices, if you want to decide yourself how many degrees to rotate the text, then click ''Format Cell Alignment.''

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