Macro controled by Cell content

Jamie Wagler

New Member
Joined
Jul 27, 2012
Messages
18
Hello,

I am wondering if it is possible if I can control a macro with the content within a cell.

I have a shop calendar which (using a macro) I want to roll ahead 1 period. I have an IF( statement in a cell which will read as "Locked" when I roll the calendar forward more than one period from the presant day. Is there a way in which I can control the macro to not roll forward a second time either through this cell reference or by any other means?
 

Some videos you may like

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,066
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
With worksheet evemts, you can trigger a macro based on changes to a target cell. That much I know
 

Jamie Wagler

New Member
Joined
Jul 27, 2012
Messages
18
Perhaps I misunderstood you, I'm not sure that helps me out.

I want to limit the number of times that I can roll the calendar forward or back. IE I do not want to be able to run the macro (which is initiated through a button) more than once.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,469
Messages
5,596,329
Members
414,055
Latest member
mcarduner

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
Top