[Webinar] Streamline your web hosting managementRegister Today


SendKeys Problem

Posted on 1999-12-11
Medium Priority
Last Modified: 2010-05-02
Is there any way to include a variable in the SendKeys statement?

For instance, I would like to do something like this:

MyFile = "Report1.wpd"

SendKeys "C:\Data\{MyFile}", True

Any help would be greatly appreciated.

Question by:deross
1 Comment

Accepted Solution

Vbmaster earned 400 total points
ID: 2274308
Sure, you can use

SendKeys "C:\Data\" & MyFile, True

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

590 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question