View Single Post
  #15   Report Post  
Old January 17th 09, 05:02 AM posted to microsoft.public.excel.newusers
Simon Lloyd[_69_] Simon Lloyd[_69_] is offline
external usenet poster
First recorded activity by ExcelBanter: Jan 2009
Posts: 1
Default "Marching ants" around copied cell

Would that be the same if the code was saved in PERSONAL.xls?T. Valko;186308 Wrote:
The method that Simon is describing can only be used in the workbook in
which you place the code.

The method I use (which takes more work to setup) can be used in any

Microsoft Excel MVP

"Riccol" wrote in message
Thanks, Simon. I'm going to tackle your instructions in the AM and

back after. (Your method sounds especially good as you say it kills

ants immediately after pasting.)


Simon Lloyd wrote:
Press and hold Alt & F11, the VBE (visual basic editor) will open,

the left you will see a list of your worksheets and on called
ThisWorkbook, they are all code modules, double click the

and paste the code i gave.

If you are ever given code for a standard module then use Alt+F11 as
before and instead of double clicking Thisworkbook, right click in

area, choose Insert and then choose Module, then you can paste your

in there. The best way to learn is to record a macro while you are

a task and then go back and take a look at the generated code, it's

to say that you will see a lot of code that is excess to

but it will give you a basic idea on how things are structured.

Simon Lloyd

Simon Lloyd
'The Code Cage' (
Simon Lloyd's Profile:
View this thread: