Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Userform and Macro code

I have the following code to switch to an open application (ACT! database)
and send the following keys. This works fine as a stand alone macro however,
when i add the same code to a button in a User Form, it doesnt work.

Can someone help?

Sub Export()

'Does an export of the ACT database

AppActivate ("ACT!"), True
Application.SendKeys ("%f"), True
Application.SendKeys ("d"), True
Application.SendKeys ("e"), True
Application.SendKeys ("{TAB}"), True

End Sub

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
NEED A MACRO CODE TO USE IN A USERFORM Rachel Excel Discussion (Misc queries) 3 November 25th 08 10:08 AM
How to get variables from worksheet code to userform code Donny Excel Programming 6 August 23rd 08 01:31 AM
VBA code sort problems - recorded macro does not work with userform Forum Freak[_2_] Excel Programming 0 July 22nd 08 07:45 PM
userform and VBA code [email protected] Excel Programming 6 July 11th 07 10:54 PM
Help with UserForm Code sneagle Excel Programming 1 November 18th 05 06:41 PM


All times are GMT +1. The time now is 11:12 AM.

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

About Us

"It's about Microsoft Excel"