Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default Please help : Macro doesnt work on other PCs

Hello everybody,

I created a macro which i am able to run in my pc which is
connected to a network, but when i save the excel file in the common drive
and try to open it from another machine, i am having trouble.what happens
actually is, i could open it, and run the macro, but it wont recognise bits
of coding. for eg:

Workbooks(energy).Sheets(energy).Range("A1:f1000") .Copy
ActiveSheet.Paste Destination:=Worksheets("Sheet1").Range("a1:f1000" )

where energy = "file name.xls", i know that this works only if the file that
i want to copy is kept open, and it works fine in my pc, and in some other
pcs that i tried. But it wont on majority of other machines in the network.
Please can anybody help??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Please help : Macro doesnt work on other PCs

You have a sheet name file name.xls

that would be very unusual.

Is the error Subscript out of Range (error 9)?

--
Regards,
Tom Ogilvy

"Jason" wrote in message
...
Hello everybody,

I created a macro which i am able to run in my pc which is
connected to a network, but when i save the excel file in the common drive
and try to open it from another machine, i am having trouble.what happens
actually is, i could open it, and run the macro, but it wont recognise

bits
of coding. for eg:

Workbooks(energy).Sheets(energy).Range("A1:f1000") .Copy
ActiveSheet.Paste Destination:=Worksheets("Sheet1").Range("a1:f1000" )

where energy = "file name.xls", i know that this works only if the file

that
i want to copy is kept open, and it works fine in my pc, and in some other
pcs that i tried. But it wont on majority of other machines in the

network.
Please can anybody help??



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default Please help : Macro doesnt work on other PCs

Hi Joson,

Did TOM's suggestion help you?
If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

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 that opens file named in cell doesnt work Illuminati Excel Worksheet Functions 2 November 15th 07 11:49 AM
macro from excel 97 that doesnt work in excel 2003 (help) [email protected] Excel Discussion (Misc queries) 2 May 16th 06 03:01 PM
My first macro - doesnt work - function not recognised James Cornthwaite Excel Worksheet Functions 2 May 14th 06 05:13 PM
Assign Macro to button in Excel doesnt work Any ideas? Mike@Becketts Excel Discussion (Misc queries) 2 December 20th 04 02:47 PM
macro code doesnt work in command button The Grinch[_9_] Excel Programming 4 July 22nd 04 06:28 PM


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