D
Dave Peterson
I've never used the bloomberg stuff, so this is just a guess.
Try adding these two lines after the .copy line:
doevents
application.calculate
(maybe the doevents will mean you won't need the .calculate--you'll find out
soon!)
If that doesn't work, then try:
Set wks = ActiveSheet 'just copied version of live
'doevents
'application.calculate
With wks
.cells.Replace what:="=", replacement:="=", _
lookat:=xlPart, searchorder:=xlByRows, _
MatchCase:=False
....
This replaces the equal sign with equal sign. Hoping that it forces excel to
recalculate all the formulas in the new worksheet.
Since the name is changed to the month and day, there's a good chance that it'll
fail when you're testing.
I'd use something that would make it much harder to fail:
..Name = Format(Now, "yyyymmdd hhmmss")
It would be pretty weird to have the program run at the same second!
Try adding these two lines after the .copy line:
doevents
application.calculate
(maybe the doevents will mean you won't need the .calculate--you'll find out
soon!)
If that doesn't work, then try:
Set wks = ActiveSheet 'just copied version of live
'doevents
'application.calculate
With wks
.cells.Replace what:="=", replacement:="=", _
lookat:=xlPart, searchorder:=xlByRows, _
MatchCase:=False
....
This replaces the equal sign with equal sign. Hoping that it forces excel to
recalculate all the formulas in the new worksheet.
Since the name is changed to the month and day, there's a good chance that it'll
fail when you're testing.
I'd use something that would make it much harder to fail:
..Name = Format(Now, "yyyymmdd hhmmss")
It would be pretty weird to have the program run at the same second!