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?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
With worksheet evemts, you can trigger a macro based on changes to a target cell. That much I know
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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