Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro attaching itself to spreadsheet

Have a macro in Book1.xls
Had some spreadsheets open,
and ran the macro on one of them.
Somehow the macro got
attached to another spreadsheet
that happend to be open at the time.

Now evertime I run the macro
the unrelated spreadsheet
opens.
If I delete the spreadsheet,
the macro doesn't run.

How can I prevent this?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Macro attaching itself to spreadsheet

Hi

is the name of the "unrelated" workbook Personal.xls? if so, next time it
opens, choose window / hide and this should solve your problem - if it isn't
Personal.xls please paste the code and let us know the name of the
"unrelated" workbook we might be able to figure out what is going on.

Cheers
JulieD


"J Shrimps, Jr." wrote in message
...
Have a macro in Book1.xls
Had some spreadsheets open,
and ran the macro on one of them.
Somehow the macro got
attached to another spreadsheet
that happend to be open at the time.

Now evertime I run the macro
the unrelated spreadsheet
opens.
If I delete the spreadsheet,
the macro doesn't run.

How can I prevent this?





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro attaching itself to spreadsheet

It isn't personal.xls, believe me, that spreadsheet
is well hidden.
I've seen this happen before.
The code is very generic, formating stuff
and placing name of sheet into cell $A$2 and
$B$4 so vlookup function can find associated
data in other spreadsheets.
Have used it for a month with no problems,
now I got problems.
Code is @ work and it's Saturday here
so I can't post it. But I have seen this
happen before with macros in book1.xls
"JulieD" wrote in message
...
Hi

is the name of the "unrelated" workbook Personal.xls? if so, next time it
opens, choose window / hide and this should solve your problem - if it

isn't
Personal.xls please paste the code and let us know the name of the
"unrelated" workbook we might be able to figure out what is going on.

Cheers
JulieD


"J Shrimps, Jr." wrote in message
...
Have a macro in Book1.xls
Had some spreadsheets open,
and ran the macro on one of them.
Somehow the macro got
attached to another spreadsheet
that happend to be open at the time.

Now evertime I run the macro
the unrelated spreadsheet
opens.
If I delete the spreadsheet,
the macro doesn't run.

How can I prevent this?







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
Need help with recording a macro, attaching a button oxicottin Excel Worksheet Functions 9 January 18th 07 05:20 PM
attaching Excel spreadsheet KimmyF Excel Discussion (Misc queries) 1 November 2nd 06 12:51 PM
attaching an image to Excel spreadsheet cell roadrunner Excel Worksheet Functions 2 October 19th 06 12:50 AM
Attaching toolbars to spreadsheet, but macros do not follow? JB Excel Programming 3 August 13th 04 09:48 PM
Attaching drop down to macro pvdalen Excel Programming 2 May 27th 04 02:44 PM


All times are GMT +1. The time now is 04:12 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"