LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Object doesn't support this method

Hi All,

I have got a problem with my code - below is an extract. It gets stuck on "
Set myBook = Workbooks.Open(SRCbook)" stating "Object deosn't support this
method". I can't work out why?

Sub Import_data_from_Project_Log()
Dim basebook As Workbook
Dim SRCbook As String
'Dim DSTbook As Workbook
Dim myBook As Workbook
Dim rngSource(2) As Range
Dim rngDest(2) As Range
Dim sourceRNG 'As Range
Dim destRNG 'As Range

SRCbook = "C:\Documents and Settings\temp\SMVIL Project Log.xls"
Set basebook = ThisWorkbook
Set rngSource(1) = Worksheets("Project Log Form").Range("A8:U79")
Set rngSource(2) = Worksheets("Risk Management Plan").Range("A7:X10")


For i = 1 To UBound(rngSource)



Set myBook = Workbooks.Open(SRCbook)

Set sourceRNG = myBook.rngSource(i)

Next i

End Sub


 
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
runtime error 434, object does not support this method or property Janis Excel Discussion (Misc queries) 4 January 17th 08 04:10 PM
object reference does not support this property or method [email protected] Excel Discussion (Misc queries) 2 June 14th 06 07:23 PM
Object doesn't support this property or method (Error 438) Kiran Excel Discussion (Misc queries) 1 July 12th 05 08:42 PM
Object doesn't support this property or method davegb Excel Programming 11 May 12th 05 03:36 PM
Object doesn't support this property or method Rick Campbell Excel Programming 2 July 13th 03 11:53 PM


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