Understanding macros

Alpacino

Well-known Member
Joined
Mar 16, 2011
Messages
511
Can someone please send me a link or videos of how to use macros. I'm trying to understand how to use them and how to do a reset button which deletes values in tables
Thanks
Alan
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
there are many good books (MrExcel macros), then the learn them by doing. Always you can post specific questions here on this forum and you will be given help.
 
Upvote 0
also, do clear a region - if it is fixed you can use

Option Explicit
Sub clear()
Range("A1:E11").clear
End Sub


otherwise you will need to do some calculations to make it elastic if your table size changes.
 
Upvote 0
The Macro Recorder can be your best friend when you're trying to learn VBA. If you start by recording everyday repetetive tasks and then look at the generated code it will be that much easier to understand, since you're familiar with the process.

HTH,
 
Upvote 0
I want to change a colour quad in a donut chart when a cell results in green or red and colour the quad in. Can you use macro to do this when the cell is green and change quad to green??
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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