Thread: Copying code
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default Copying code

What is "doesn't work"?

Error message? Incorrect results? Nothing?

If you copied a Function from Chip's site and placed it in your Personal.xls you
have to preface the Function like so or you will get the #NAME? error in the
cell.

=Personal.xls!Function()

If not a Function, but a Sub then tell us which one from Chip's site.


Gord Dibben MS Excel MVP

On Thu, 7 Sep 2006 13:56:02 -0700, wal50
wrote:

New to VBA so ...
I have copied some of the great code from CPearson.com. If I open a new
workbook and add the code to a new module. it works for that workbook (only).
What I want to do is add it to personal.xls so it works in all workbooks. I
can't get this to happen. I add a new module to personal.xls, copy the code
and it doesn't work. Other macros that I have in Personal.xls work fine in
all books.
Any ideas?
Thanks.
WAL50