Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default macro not working on 1 PC, ok on others

A long shot, but if you have any Add-Ins installed uninstall them and try
again.

HTH, Greg

"diane" wrote in message
...
Has anybody got any clues as to what this user should be
looking for? I can't get to see the code to check it - is
there anything obvious that I can get her to check? I've
told her to remove the extra code that she typed.


The macro is written in file A.

1) It opens file B and opens file C.

2) It deletes some data in file B and replaces it with
some data from file C.

3) It closes file C.

4) It then filters and formats the data that has been
copied into B and generates a variety of pivot tables and
one pie chart.

5) It then opens approx 10 more files and copies data from
them into B. It closes each of the files once it has
finished copying from it.

The error occurs at point 2 when it is trying to copy the
data from C to B. I think the error occurs when it is
trying to change focus from file C to B just after step
1. There is no Excel error message. The error message
that comes up is a custom error message that was written
into the macro: "There has been an error in copying and
pasting the data".

There is definitely nothing wrong with the macro itself
because I have been using it for several months and
changed nothing in it. Also I have tested it on two other
machines here and it works great. It just doesn't work on
my machine . It worked one day and then didn't work the
next day. I have not installed any programs onto my
machine or changed the settings in any way. The only
thing I did that was different is open Visual Basic and
write a program in there that opens Notepad.



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
Macro working bar Alberto Ast[_2_] Excel Discussion (Misc queries) 14 September 12th 09 03:12 PM
MACRO IS NOT WORKING AS IT SHOULD jeannie v Excel Worksheet Functions 3 June 21st 07 08:19 AM
macro not working dpolston Excel Discussion (Misc queries) 2 April 19th 07 09:16 PM
macro not working Jonathan Cooper Excel Discussion (Misc queries) 1 February 1st 06 10:06 PM
Macro not working ced[_2_] Excel Programming 1 September 18th 03 10:09 PM


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