#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ditzafar
 
Posts: n/a
Default macro


When I recording the macro I can use it in others workbooks, but when
I'm typing the code in v.b I can use the macro only on the specific
workbook. I have no idea what can be the problem. thanks.


--
ditzafar
------------------------------------------------------------------------
ditzafar's Profile: http://www.excelforum.com/member.php...o&userid=29475
View this thread: http://www.excelforum.com/showthread...hreadid=491822

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kleev
 
Posts: n/a
Default macro

Where are you putting the code? Try inserting a module and then typing the
code (or copying/moving it) there. Then you should be able to bring it up
using Alt-F8.

"ditzafar" wrote:


When I recording the macro I can use it in others workbooks, but when
I'm typing the code in v.b I can use the macro only on the specific
workbook. I have no idea what can be the problem. thanks.


--
ditzafar
------------------------------------------------------------------------
ditzafar's Profile: http://www.excelforum.com/member.php...o&userid=29475
View this thread: http://www.excelforum.com/showthread...hreadid=491822


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default macro

ditz

I'm guessing that when you record a macro you are recording to your "personal
macro workbook" which is Personal.xls and is the storage file for global
macros.

When you go into the VBE you may be typing the code into the workbook that is
open.

Type your code into the Personal.xls module(s)

When in the VBEditor look for Personal.xls and expand it to see the module(s)
to edit or type new code into.

Also make sure any coding lines refer to ActiveWorkbook and ActiveSheet and
not hard-coded to a specific book or sheet.


Gord Dibben Excel MVP

On Thu, 8 Dec 2005 08:45:13 -0600, ditzafar
wrote:


When I recording the macro I can use it in others workbooks, but when
I'm typing the code in v.b I can use the macro only on the specific
workbook. I have no idea what can be the problem. thanks.

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
Editing a simple macro Connie Martin Excel Worksheet Functions 5 November 29th 05 09:19 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM


All times are GMT +1. The time now is 01:35 AM.

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

About Us

"It's about Microsoft Excel"