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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

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