Using a macro to refresh Investran OLE DB reports using specific parameters

hutch27

New Member
Joined
May 5, 2014
Messages
37
Hello all,

I work as a fund accountant in the private equity industry and we rely heavily on Investran OLE DB reports for financial data. To best ask my question I think I should give a scenario:

Sheet 1 - Main tab
  • Cell A1: Fund name (from a dropdown menu)
  • Cell A2: End Date
  • Cell A3: Start Date

Sheet 2 - Data Tab
  • This tab will have formulas that link to Sheet 3 & 4

Sheet 3
- Driver #1 : Investran OLE DB Report with the following parameters
  • Fund Name

Sheet 4 - Driver #2 : Investran OLE DB Report with the following parameters
  • Fund Name
  • End Date
  • Start Date


My question is: How can I create a macro that with the press of a button, automatically refreshes Sheet 3 & 4 (Investran OLE DB Reports) using the parameters in sheet 1 (main tab). I've been able to create a macro that will refresh the entire workbook, however, I still need to manually enter the parameters on sheet 3 & 4.

Any help would be appreciated.

Thank you.
 
Last edited:

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hey @hutch27, I was wondering if you ever found a solution to using a macro refresh Investran OLEDB reports using specific parameters. I'm currently trying to set up something similar.
 
Upvote 0
That's great. Would you mind sharing, so I can see if I can back into it? I think I have the bones set up, I'm just looking for the section to update the specific parameters.
 
Upvote 0
That's great. Would you mind sharing, so I can see if I can back into it? I think I have the bones set up, I'm just looking for the section to update the specific parameters.
Hi, did you figure it out? Could you please share what you already have and we can try to fix the rest?

Thank you
 
Upvote 0
I wanted to follow-up on this thread and see if anyone had a solution. Thanks!
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top