![]() |
#1
|
|||
|
|||
![]()
Hi,
I have got an issue with running a VBA command. The command repetes the goal seek function for all my observations (one oberservation=one line). Since I have a total of 670.000 oberservations it takes a very long time for excel to compute all the numbers. A friend of mine helped to build the VBA command: Code:
Public Function Zielwert() Dim z As Integer z = 2 For i = 1 To 500 Range("EY" & z).GoalSeek Goal:=Range("K" & z).Value, ChangingCell:=Range("EW" & z) Range("EY" & z).GoalSeek Goal:=Range("K" & z).Value, ChangingCell:=Range("EW" & z) z = z + 1 Next i End Function So I need a solution for how to perform the goal seek function with VBA but a lot faster than right now. Maybe a change in the VBA command is required or several VBA commands in different sheets, since it runs faster with smaller numbers of observations? Does anyone know what to do? Thanks in advance! Last edited by macropod; 07-21-2015 at 02:17 PM. Reason: Added code tags & formatting |
Tags |
goal seek, sample, vba code |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automatic goal seek program-Help required | calltobala | Excel Programming | 0 | 05-08-2015 08:41 AM |
Excel 2013, Problem with a shared file, takes long time to load and save and loads missing data | PStark | Excel | 0 | 12-04-2014 07:52 AM |
Excel VBA Multiple Automatic Goal Seek Required – Please Assist us | champaben | Excel Programming | 13 | 06-22-2014 05:54 AM |
set daily goal for actual workdays, excluding weekends holidays and days off | Brian Reilly | Excel | 1 | 01-24-2014 11:56 PM |
![]() |
uhlersa | Excel | 1 | 01-16-2012 08:18 PM |