0

Macro to refresh THIS workbook

Hi

I use

Application.Run "JetReports.xlam!JetMenu", "Refresh"

to refresh report. It works when there is one workbook open. 

But when there is more than one workbook open and I run my workbook with macro it shows empty option window

 

I thought that "ThisWorkbook.Activate" will help but it doesn't.

It looks like this code doesn't focus on workbook with macro but on all workbooks.

 

How can I make this work?

thanks for any advise 

 

3 comments

Please sign in to leave a comment.