PC Review


Reply
Thread Tools Rate Thread

Deleting macros?

 
 
Jay
Guest
Posts: n/a
 
      2nd Mar 2007
Hi,

I'm a macro novice and tend to just record them rather than dabbling in VBA.

If I save a macro to my personal macro workbook, how do I delete it? as it
says I need to unhide personal.xls to do this?

Many thanks,

Jay


 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      2nd Mar 2007
Go to the VBIDE, and select Personal.xls from the project explorer. Open the
code module and just delete the macro.
--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I'm a macro novice and tend to just record them rather than dabbling in
> VBA.
>
> If I save a macro to my personal macro workbook, how do I delete it? as
> it says I need to unhide personal.xls to do this?
>
> Many thanks,
>
> Jay
>



 
Reply With Quote
 
Jay
Guest
Posts: n/a
 
      5th Mar 2007
Thanks Bob,

The macros I recorded are saved in personal.xls as separate modules. - Is it
better if they are all in the same module? and if so how is this done?

Regards,

Jason

"Bob Phillips" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Go to the VBIDE, and select Personal.xls from the project explorer. Open
> the code module and just delete the macro.
> --
> ---
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my
> addy)
>
>
>
> "Jay" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi,
>>
>> I'm a macro novice and tend to just record them rather than dabbling in
>> VBA.
>>
>> If I save a macro to my personal macro workbook, how do I delete it? as
>> it says I need to unhide personal.xls to do this?
>>
>> Many thanks,
>>
>> Jay
>>

>
>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      5th Mar 2007
Jay,

Classic answer ... it depends.

If you have just a few macros, it is probably better to put them all in one
module, although it shouldn't make any difference, as it will be easier to
find them. Just cut them out of the other modules, and paste them into your
single module, then delete the empty modules.

Conversely, if you have lots of macros, it is probably better to group them
into functionally similar modules (e..g. all file I/O macros, all formatting
macros). It is also a good idea to give these modules meaningful names, such
as mIO, mFormatting, again to aid maintenance. This is how I group my code.

After a while, a single module can fail if you put too much code (circa 64K)
in there.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Bob,
>
> The macros I recorded are saved in personal.xls as separate modules. - Is
> it better if they are all in the same module? and if so how is this done?
>
> Regards,
>
> Jason
>
> "Bob Phillips" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Go to the VBIDE, and select Personal.xls from the project explorer. Open
>> the code module and just delete the macro.
>> --
>> ---
>> HTH
>>
>> Bob
>>
>> (there's no email, no snail mail, but somewhere should be gmail in my
>> addy)
>>
>>
>>
>> "Jay" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi,
>>>
>>> I'm a macro novice and tend to just record them rather than dabbling in
>>> VBA.
>>>
>>> If I save a macro to my personal macro workbook, how do I delete it? as
>>> it says I need to unhide personal.xls to do this?
>>>
>>> Many thanks,
>>>
>>> Jay
>>>

>>
>>

>
>



 
Reply With Quote
 
Jay
Guest
Posts: n/a
 
      5th Mar 2007
Thansk Bob, that's what I thought. One other macro-related question (if I
may) - when a colleague of mine has more than one excel file open he gets
the following error message if he tries to use a macro:

PERSONAL.XLS is locked for editing by......
Open Read-Only or, click 'Notify' to open read-onlu and receive notification
when the docuemtn is no longer in use.

Could you advise why this is happening and how to prevent it, as he needs to
use macros with two files open.

Many thanks,

Jay

"Bob Phillips" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Jay,
>
> Classic answer ... it depends.
>
> If you have just a few macros, it is probably better to put them all in
> one module, although it shouldn't make any difference, as it will be
> easier to find them. Just cut them out of the other modules, and paste
> them into your single module, then delete the empty modules.
>
> Conversely, if you have lots of macros, it is probably better to group
> them into functionally similar modules (e..g. all file I/O macros, all
> formatting macros). It is also a good idea to give these modules
> meaningful names, such as mIO, mFormatting, again to aid maintenance. This
> is how I group my code.
>
> After a while, a single module can fail if you put too much code (circa
> 64K) in there.
>
> --
> ---
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my
> addy)
>
>
>
> "Jay" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thanks Bob,
>>
>> The macros I recorded are saved in personal.xls as separate modules. - Is
>> it better if they are all in the same module? and if so how is this done?
>>
>> Regards,
>>
>> Jason
>>
>> "Bob Phillips" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> Go to the VBIDE, and select Personal.xls from the project explorer. Open
>>> the code module and just delete the macro.
>>> --
>>> ---
>>> HTH
>>>
>>> Bob
>>>
>>> (there's no email, no snail mail, but somewhere should be gmail in my
>>> addy)
>>>
>>>
>>>
>>> "Jay" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Hi,
>>>>
>>>> I'm a macro novice and tend to just record them rather than dabbling in
>>>> VBA.
>>>>
>>>> If I save a macro to my personal macro workbook, how do I delete it?
>>>> as it says I need to unhide personal.xls to do this?
>>>>
>>>> Many thanks,
>>>>
>>>> Jay
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      5th Mar 2007
Sounds to me that he is starting two instances of Excel, which will both
open Personal.xls, rather than just opening both files in the same instance.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thansk Bob, that's what I thought. One other macro-related question (if I
> may) - when a colleague of mine has more than one excel file open he gets
> the following error message if he tries to use a macro:
>
> PERSONAL.XLS is locked for editing by......
> Open Read-Only or, click 'Notify' to open read-onlu and receive
> notification when the docuemtn is no longer in use.
>
> Could you advise why this is happening and how to prevent it, as he needs
> to use macros with two files open.
>
> Many thanks,
>
> Jay
>
> "Bob Phillips" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Jay,
>>
>> Classic answer ... it depends.
>>
>> If you have just a few macros, it is probably better to put them all in
>> one module, although it shouldn't make any difference, as it will be
>> easier to find them. Just cut them out of the other modules, and paste
>> them into your single module, then delete the empty modules.
>>
>> Conversely, if you have lots of macros, it is probably better to group
>> them into functionally similar modules (e..g. all file I/O macros, all
>> formatting macros). It is also a good idea to give these modules
>> meaningful names, such as mIO, mFormatting, again to aid maintenance.
>> This is how I group my code.
>>
>> After a while, a single module can fail if you put too much code (circa
>> 64K) in there.
>>
>> --
>> ---
>> HTH
>>
>> Bob
>>
>> (there's no email, no snail mail, but somewhere should be gmail in my
>> addy)
>>
>>
>>
>> "Jay" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Thanks Bob,
>>>
>>> The macros I recorded are saved in personal.xls as separate modules. -
>>> Is it better if they are all in the same module? and if so how is this
>>> done?
>>>
>>> Regards,
>>>
>>> Jason
>>>
>>> "Bob Phillips" <(E-Mail Removed)> wrote in message
>>> news:%(E-Mail Removed)...
>>>> Go to the VBIDE, and select Personal.xls from the project explorer.
>>>> Open the code module and just delete the macro.
>>>> --
>>>> ---
>>>> HTH
>>>>
>>>> Bob
>>>>
>>>> (there's no email, no snail mail, but somewhere should be gmail in my
>>>> addy)
>>>>
>>>>
>>>>
>>>> "Jay" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>> Hi,
>>>>>
>>>>> I'm a macro novice and tend to just record them rather than dabbling
>>>>> in VBA.
>>>>>
>>>>> If I save a macro to my personal macro workbook, how do I delete it?
>>>>> as it says I need to unhide personal.xls to do this?
>>>>>
>>>>> Many thanks,
>>>>>
>>>>> Jay
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting Macros =?Utf-8?B?Q29ubmllIE1hcnRpbg==?= Microsoft Excel Misc 2 25th Aug 2006 05:22 PM
Deleting Macros Glenn Bendle Microsoft Excel Misc 3 25th May 2004 10:10 AM
Deleting Macros KM Microsoft Excel Programming 0 18th Nov 2003 03:36 PM
Deleting Macros Axel Pollak Microsoft Excel Misc 2 8th Sep 2003 04:10 AM
Re: Deleting macros that won't let you Cindy Meister -WordMVP- Microsoft Word New Users 0 7th Sep 2003 11:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:14 AM.