Shrinivas --
My guess is that the Excel sheet you are trying to reference is either misnamed or does not exist When the error appears, click the Debug button -- this will take you to the offending line of code in the VB Editor This will enable you do identify the cause of the error Hope it helps you ! - Rodney POWELL [ Microsoft MVP - Excel, 1997-2009 ] www.BeyondTechnology.com On Apr 1, 4:54 am, shrinivas shevde <shrinivas...@hotmail.com> wrote: > Dear All > > I am having vba code not written by me but one of my friend.Now I am facing a > problem while running the same. > > This I am using to make a monthly report ,this programe open a indivisual > file from the given folsder and copy paste required data in given excel sheet. > > Now when I am try to run this it shows the > > Run-time error9' > Subscript out of range > > Please help me to solve this problem > > shrinivas > > _________________________________________________________________ > So many new options, so little time. Windows Live > Messenger.http://www.microsoft.com/india/windows/windowslive/messenger.aspx --~--~---------~--~----~------------~-------~--~----~ ------------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com ------------------------------------------------------------------------------------- -~----------~----~----~----~------~----~------~--~---