Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / June 2007

Tip: Looking for answers? Try searching our database.

Snedkeys "{F9}", true does not work

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
clara - 18 Jun 2007 20:52 GMT
Hi all,

My cal mode is set to manual at start, so in code I use sendkeys
"{F9}",True, to force formula to calculate, but it failed until I press F9, I
also use "%^F9", neither work.Could you help me to fingure it out?

Clara
Signature

thank you so much for your help

Chip Pearson - 18 Jun 2007 20:59 GMT
Clara,

You should avoid SendKey as much as you can.  Instead, try some of the code
below:

Application.Calculate

Dim WS As Worksheet
Set WS = ActiveSheet
WS.Calculate

Dim Rng As Range
Set Rng = Range("A1:A100")
Rng.Calculate

Signature

Cordially,
Chip Pearson
Microsoft MVP  - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)

> Hi all,
>
[quoted text clipped - 4 lines]
>
> Clara
krcowen@aol.com - 18 Jun 2007 22:27 GMT
Clara
Could you just use a "Calculate" statement and skip the sendkeys?
Ken

> Hi all,
>
[quoted text clipped - 5 lines]
> --
> thank you so much for your help
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.