General discussion
November 7, 2004 at 08:48 AM
foxfire2010

Macro using VBA to Copy……….

by foxfire2010 . Updated 21 years, 11 months ago

I have a workbook where the user needs to import cells from a Worksheet from a Workbook residing on their hard drive, and paste into a Worksheet of an Open Workbook.

The user only knows the file path and file name of the imported worksheet – not at time of programming.
The open Workbook name is also the choice of the user.
Using message box is not practical as most users get frustrated of having to type this in. I have used Workbooks.Openfilename command, but how can I change it to user driven variable. In addition, I was stuck on Workbook.Activate, as again it requires a file name and therefore needs a user driven variable.

Can anyone help me out with the VBA CODE?

This discussion is locked

All Comments