help...new to mr. excel, how do you input a code?

trhlblue

New Member
Joined
Sep 20, 2006
Messages
2
this may seem like a very simple question, but as I've been browsing the messages on mr. excel, I've seen responses with a code. If I want to use that code, how do I use it in excel? Do I create a macro? I know, I know, it's pathetic how naive I am with excel.

please, please help a girl out! :biggrin:
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

texasalynn

Well-known Member
Joined
May 19, 2002
Messages
8,458
most of the time the code is a macro that is put into a module. But other times it goes into the worksheet. It just depends on the code and what it is doing. My suggestion is try it and see and a blank test file.
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Press ALT + F11 to open the Visual Basic Editor. Insert > Module. Come back here, select the code you want, press CTRL+C to copy it, go back to the VBE editor and press CTRL+V to paste it in.
 

erik.van.geit

MrExcel MVP
Joined
Feb 1, 2003
Messages
17,832
nice little trick
Control+click in the code (if codewindow is used) and everything is selected
 

Forum statistics

Threads
1,176,386
Messages
5,902,788
Members
434,996
Latest member
aimeea

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