Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default URGENT!!!!!!!!!!!!!!! Problem with macros in Excel

H

I wrote a macro in excel "sheet1" .What this macro does is to export data from one Excel "sheet2" to "Sheet1". It was working fine in all systems. till 2 days back. But now it works in some and it doesn't work in some systems.

It gives an error saying ""Runtime-Error '9' Subscript Out of Range."

At this line i am actually activating the sheet from whcihc it has to copy. Ie " Windows("Sheet2.xls").Activate

Some one pls hel

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default URGENT!!!!!!!!!!!!!!! Problem with macros in Excel

is Sheet2 the name of the sheet or the name of the workbook.

anyway, a subscript out of range error says you are providing an argument to
Windows or other collection which is invalid. For you example, there is no
workbook with the name Sheet2.xls

--
Regards,
Tom Ogilvy


"Anamika" wrote in message
...
Hi

I wrote a macro in excel "sheet1" .What this macro does is to export data

from one Excel "sheet2" to "Sheet1". It was working fine in all systems.
till 2 days back. But now it works in some and it doesn't work in some
systems.

It gives an error saying ""Runtime-Error '9' Subscript Out of Range." .

At this line i am actually activating the sheet from whcihc it has to

copy. Ie " Windows("Sheet2.xls").Activate"

Some one pls help



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
urgent help with lock excel macros!!! [email protected] Excel Discussion (Misc queries) 8 December 27th 07 07:13 PM
Excel problem - urgent infodata Excel Discussion (Misc queries) 1 May 12th 06 04:48 PM
Urgent Help Required on Excel Macro Problem Sachin Shah Excel Discussion (Misc queries) 1 August 17th 05 06:26 AM
Excel data format problem (Urgent) ajaykrishna Excel Programming 1 December 30th 03 11:47 AM
Excel data format problem (Urgent) ajaykrishna[_2_] Excel Programming 0 December 30th 03 11:16 AM


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