Using the cell content when doing a macro

Joined
Sep 4, 2007
Messages
1
Reaction score
0
Is it possible to use the cell content when doing a macro? For example,

I want to open a file in a determined number of folders, which are identified in the following cells:

CellA1: \\C:\Desktop\File1.xls
CellA2: \\C:\Desktop\File2.xls
CellA3: \\C:\Desktop\File3.xls
CellA4: \\C:\Desktop\File4.xls

Is it possible do something like it?

Workbooks. Open Filename=CellA1.Content
Workbooks. Open Filename=CellA2.Content
Workbooks. Open Filename=CellA3.Content
Workbooks. Open Filename=CellA4.Content
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top