Looking for an internet help resource

stevelake

Board Regular
Joined
Jun 6, 2007
Messages
102
Does anybody know a good internet resource that l can read relating to the difference between a using macro and adding code to a worksheet?

I have looked on excel2007 help but nothing is apparent

Thanks

Steve
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

btadams

Well-known Member
Joined
Jan 6, 2003
Messages
1,942
Steve,

By adding code to a worksheet, do you mean a worksheet event macro? If so, then you add the code by double-clicking the worksheet object in the Visual Basic Editor. For example, on the left side of the VBE you should see the Project Explorer window which shows you all workbooks and add-ins you currently have open. If you double-click on
VBAProject(Book1.xls), for example, you will see a folder named Microsoft Excel Objects and in this folder you should see all the worksheet objects for that workbook. If you double-click on one of these sheet objects you should see a blank white space. Then if you click on the drop-down menu that says (General) and change that to Worksheet, you should see the Worksheet_SelectionChange event displayed. Then click on the drop-down that says SelectionChange and you will see all the worksheet events that you can add code to and that will be executed when that event occurs.

HTH
 

Forum statistics

Threads
1,181,416
Messages
5,929,790
Members
436,693
Latest member
BroTr

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