Pick up file from specific location

  • Thread starter Thread starter Mandeep Dhami
  • Start date Start date
M

Mandeep Dhami

Hi,

I have recorded a macro for preparing Pivot Table.

I would like this macro to work for different excel files.

I require that when I enter path and file name in cell B2 in a file where
macro is stored, the macro picks up file stored in this location and runs the
macro that I have recorded and prepared pivot table.

Can you help me with this request.

Cheers,
Mandeep
 
perhaps:

Sub Macro4()
Workbooks.Open Filename:=Range("B2").Value
Call pivoteer
End Sub

where cell B2 contains something like:

C:\Documents and Settings\Owner\Desktop\helper3.xls
 

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

Back
Top