Hello Manoj
Try to copy specific range using Application.GetOpenFilename().
Try to follow the guidelines from Vasant and Angel.
'''''''''''''''''''''''''''''''''''''''''''''''*******************************''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Option Explicit
Sub OpenNcopyOneFile()
''''''''OPEN AND COPY RANGE FOR ONE FILE USING GetOpenFilename
Dim FName As Variant
Dim wrkbooks1 As Workbook
Dim wrkbooks2 As Workbook
Set wrkbooks1 = ThisWorkbook
Application.DisplayAlerts = False
Application.DisplayAlerts = False
FName = Application.GetOpenFilename(filefilter:="Excel Files (*.xls), *.xls")
If FName <> False Then
Application.ScreenUpdating = False
Set wrkbooks2 = Workbooks.Open(FName)
wrkbooks2.Sheets("Sheet1").Range("A1:C1").Copy wrkbooks1.Sheets("Sheet1").Range("A1")
wrkbooks2.Close False
Application.ScreenUpdating = True
End If
End Sub
'''''''''''''''''''''''''''''''''''''''''''''''*******************************''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
--
Regards,
Prashant Tripathi
Engineer-SW
Mobile: 0017202597567
Please consider the environment before printing.
----------------------------------------------------
Immer zielen auf die vollkommene Harmonie des
Denkens & Wort & deed.Always zielen darauf ab,
reinigen Sie Ihre Meinung und alles wird gut.
----------------------------------------------------
Always aim at complete harmony of thought &
word & deed.Always aim at purifying your
thoughts & everything will be well.