Copying code

G

Guest

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
 
G

Gord Dibben

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
 
G

Guest

"doesn't work" is a frequently used term meaning "this should be working but
I have no idea why it doesn't". Anyway, you resolved my problem (#Name).
Thanks.
WAL50
 
G

Gord Dibben

In addition, the frequently used term "doesn't work" is a non-descriptive term

which is of absolutely no use to anyone attempting to troubleshoot a problem.

I guessed and this time was lucky.


Gord

"doesn't work" is a frequently used term meaning "this should be working but
I have no idea why it doesn't". Anyway, you resolved my problem (#Name).
Thanks.
WAL50

Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top