Kamis, 21 Juli 2011

RE: [ExcelVBA] Re: Freeze Window

 

It is quite usual for multiple users to access the same workbook, and
these users might have (or want) different auto calc settings. It's
appropriate to return it to what it was, rather than simply forcing it
on.

The best way to make sure you can see the latest results is to force a
recalculation. E.g. a simple "Calculate" in the code will recalculate
all open workbooks without changing the manual calculation settings.


Regards, Dave S

________________________________

From: ExcelVBA@yahoogroups.com [mailto:ExcelVBA@yahoogroups.com] On
Behalf Of noskosteve
Sent: Friday, 22 July 2011 13:22
To: ExcelVBA@yahoogroups.com
Subject: [ExcelVBA] Re: Freeze Window

John,

I do this all the time and don't understand your tip. Since I am in
control of my macro and updatinog, I turn it off when a long macro is
doing screen ops, then turn it on when the macro finishes - this way it
runs faster, then, I see the results when it finishes.
Even if it was off to start, I still want to see the results.
Steve

--- "VisioMVP" <VisioMVP@...> wrote:
>
> One minor point. Rather than setting ScreenUpdating to True at the
end, you
> should save the current state and then restore it when finished. If
> ScreenUpdating is false before you start, then you would be altering
things.
>
> John. Visio MVP
>
> From: mickey11030>
> Thanks all; that will be a big help.
>
> --- William D Simpson <w-simpson1@> wrote:
> >
> > Application.ScreenUpdating = False '.to stop screen updating
> > Your code here
> > Application.ScreenUpdating = True '..to allow screen updating

> > Regards, Bill Simpson PMO Emerging Programs 972-952-2573

> > From: "mickey11030"

> > I seem to remember hearing about a command to stop the window from
> updating
> > to speedup a long running macro. Does anyone remember what that
command
> is?

----------

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mails are not encrypted and cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail transmission.
If verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities
or related financial instruments.

UBS reserves the right to retain all messages. Messages are protected
and accessed only in legally justified cases.

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------
.

__,_._,___

Tidak ada komentar:

Posting Komentar