Results 1 to 2 of 2

Thread: [RESOLVED] Goal Seek from macro

  1. #1

    Thread Starter
    Fanatic Member VBAhack's Avatar
    Join Date
    Dec 2004
    Location
    Sector 000
    Posts
    617

    Resolved [RESOLVED] Goal Seek from macro

    This is so embarrasing because I've done this 1000 times in older versions of Excel. I can't get Goal Seek to run in a macro in Excel 2010:

    Code:
    Range("E8").GoalSeek Goal:=0, ChangingCell:=Range("C6")
    I know the macro runs because I put in debug.print statements before and after the Goal Seek line, but executing the macro doesn't change anything on the sheet. I'm obviously doing something wrong but can't for the life of me figure out what it is. I can click E8 manually and use the Gool Seek function from the menus, but the macro just doesn't work.

  2. #2

    Thread Starter
    Fanatic Member VBAhack's Avatar
    Join Date
    Dec 2004
    Location
    Sector 000
    Posts
    617

    Re: [RESOLVED] Goal Seek from macro

    Double embarrasement. I exited Excel and re-launched and now the macro works............

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width