'Application.ScreenUpdating = False' isn't working
That first section of code is pretty small and doesn't do any screenupdating
anyway. You're not gaining too much by turning off screenupdating before the
..open line.
And if you turn off screenupdating after you open lookup.xls, then it'll show
up. But you could activate the other workbook right after you open the file,
then turn off screenupdating--or turn off the events.
Set ws = ActiveSheet
Set wb = Workbooks.Open("A:\Lookup.xls")
ws.parent.activate
Application.ScreenUpdating = False
With ws
Set rng = .Range(.Cells(1, 1), _
.Cells(.Rows.Count, 2).End(xlUp))
End With
=====
might be ok.
"Dan R." wrote:
Oh I know, I mapped a network drive on A: for some odd reason. But yes
you're right I do have a worksheet_change event on the Lookup sheet.
This is probably a stupid question but if I turn off screenupdating
after I open Lookup then it's still going to show it open it correct?
Or do I have to turn it off both before and after I open Lookup?
Thanks Dave,
-- Dan
--
Dave Peterson
|