how can i know if refresh button is pressed - when working with Worksheet_Change

MosheR

New Member
Joined
Oct 31, 2014
Messages
4
Hellow,

I have an excel file with numerous identical sheets which i am using to retrieve a status report from my employees at work.
In those sheets they have specific cells to update and those cells are being updated using a generic function i am calling using Sub Worksheet_Change in each sheet.

recently i have added for each sheet a TFS table via the Team tab etc..

The problem is when I am pressing the refresh button at the Team tab, the generic function of Worksheet_Change is being called, and getting inside a very long loop that will end eventually.

Is there a way to catch the event when the Refresh Button is being pressed, and check it and then exit the sub of worksheet_change, if it is not pressed i would like to function to run.

Thank you very much for your assistance.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Moshe, got put this in the "Excel" forum. Over here, we only know about Power Pivot :)
 
Upvote 0

Forum statistics

Threads
1,224,045
Messages
6,176,061
Members
452,701
Latest member
rfhandel

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