Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default sendkeys statement

I am very new to VBA.

I want the user to be able to click a command button to
execute what could be done by manually entering "ALT F9".

Any help would be great,
Thanks
Matt M
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default sendkeys statement

Hi
have a look at the VBA help for Sendkeys:
SendKeys "%{F9}", True

--
Regards
Frank Kabel
Frankfurt, Germany

"Matt M" schrieb im Newsbeitrag
...
I am very new to VBA.

I want the user to be able to click a command button to
execute what could be done by manually entering "ALT F9".

Any help would be great,
Thanks
Matt M


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default sendkeys statement

Hey Frank,
I am not exactly sure how to enter this into VBA and what
code to surround it with. Am I a lost cause?
Thanks,
Matt

-----Original Message-----
Hi
have a look at the VBA help for Sendkeys:
SendKeys "%{F9}", True

--
Regards
Frank Kabel
Frankfurt, Germany

"Matt M" schrieb

im Newsbeitrag
...
I am very new to VBA.

I want the user to be able to click a command button to
execute what could be done by manually entering "ALT

F9".

Any help would be great,
Thanks
Matt M


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default sendkeys statement

Hi Matt
if you only want the application to re-calculate you may use the
following macro

sub calc()
application.calculate
end sub

and assign this to a button. Also have a look at
http://www.mvps.org/dmcritchie/excel/getstarted.htm
for getting started with macros

--
Regards
Frank Kabel
Frankfurt, Germany

"Matt M" schrieb im Newsbeitrag
...
Hey Frank,
I am not exactly sure how to enter this into VBA and what
code to surround it with. Am I a lost cause?
Thanks,
Matt

-----Original Message-----
Hi
have a look at the VBA help for Sendkeys:
SendKeys "%{F9}", True

--
Regards
Frank Kabel
Frankfurt, Germany

"Matt M" schrieb

im Newsbeitrag
...
I am very new to VBA.

I want the user to be able to click a command button to
execute what could be done by manually entering "ALT

F9".

Any help would be great,
Thanks
Matt M


.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does sendkeys seem to loop Geoff Martin Excel Programming 5 February 5th 04 07:00 AM
How Can I Use SendKeys in MAC EXCEL? kenji4861 Excel Programming 1 October 29th 03 07:24 AM
Sendkeys GB[_3_] Excel Programming 0 September 16th 03 10:39 PM
SendKeys Ron de Bruin Excel Programming 3 August 25th 03 10:21 PM
sendkeys mark poole Excel Programming 0 July 11th 03 03:47 PM


All times are GMT +1. The time now is 07:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"