ProphetofProfit
New Member
- Joined
- Feb 28, 2011
- Messages
- 28
I've honestly searched every page on the interwebs so far, tried about 10 different approaches but my ineptitude with VBA wins every time.
Everything up to 'application run' works fine.
The subroutine I'm trying to run:
I've tried lots of different approaches but no luck so far.
Everything up to 'application run' works fine.
Code:
Sub BackTest()
Dim i
Dim r
For r = Sheets("Summary").Range("F1") To Sheets("Summary").Range("F2")
Sheets("Data").Cells(1, 3).Value = Sheets("Odds").Cells(r, 7).Value
Sheets("Data").Cells(2, 3).Value = Sheets("Odds").Cells(r, 8).Value
Application.Run "'Get Odds!'CmdCalculate_Click"
The subroutine I'm trying to run:
Code:
Sub CmdCalculate_Click()
For i = 0 To 11
For j = 0 To 11
.
.
.
I've tried lots of different approaches but no luck so far.