Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 39
Default Copying code

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
  #2   Report Post  
Posted to microsoft.public.excel.newusers
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


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 39
Default Copying code

"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" wrote:

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



  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 427
Default Copying code

On Fri, 08 Sep 2006 14:15:02 +0100, wal50
wrote:

"doesn't work" is a frequently used term meaning "this should be working
but
I have no idea why it doesn't".

That's the obvious part

Anyway, you resolved my problem (#Name).


Thats what was wanted in the first place

Thanks.
WAL50


Glad it works

Steve


"Gord Dibben" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default Copying code

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

On Fri, 8 Sep 2006 06:15:02 -0700, wal50
wrote:

"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" wrote:

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




Gord Dibben MS Excel MVP
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inactive User - Code Oddity (actually bizarre) Mike The Newb Excel Discussion (Misc queries) 0 September 1st 06 02:44 PM
Can someone help me put psuedo code into actual excel macro?? bxc2739 Excel Discussion (Misc queries) 1 April 22nd 06 02:58 PM
Complicated If Then / V Lookup / Match Statement... ryesworld Excel Worksheet Functions 17 December 10th 05 02:09 PM
Need 2 add second then third code with first code in the Tab View nick s Excel Worksheet Functions 3 December 6th 05 02:20 AM
Macro for changing text to Proper Case JPriest Excel Worksheet Functions 3 August 8th 05 09:31 PM


All times are GMT +1. The time now is 03:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"