Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA error 438 - Object not supporting this property or method

I'm simply trying to add a VB button to a spreadsheet that copies a range of
cells from one worksheet in an open file to another worksheet in a different
open file (then save that file that received the paste as a new filename).
When I click on the button, it appears I can activate the other file, select
and copy a range, then come back (activate) the first file (that has the
button) but it fails (error 438 and similar) right after it tries to select
the correct worksheet just as it tries to select the cell I want to copy to.
I've tried other methods but get similar errors. Please help! Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default VBA error 438 - Object not supporting this property or method

This works for me... I added a pict file and assigned the Test macro to
it...

Sub Test()
Workbooks("Book2").Sheets(1).Range("B5").Copy _
ActiveWorkbook.Sheets(1).Range("B5")
End Sub


No need to activate the other book to do a copy and paste. The other code
for saving shouldn't change.

Brian


"Catalina" wrote in message
...
I'm simply trying to add a VB button to a spreadsheet that copies a range

of
cells from one worksheet in an open file to another worksheet in a

different
open file (then save that file that received the paste as a new filename).
When I click on the button, it appears I can activate the other file,

select
and copy a range, then come back (activate) the first file (that has the
button) but it fails (error 438 and similar) right after it tries to

select
the correct worksheet just as it tries to select the cell I want to copy

to.
I've tried other methods but get similar errors. Please help! Thanks.



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
runtime error 434, object does not support this method or property Janis Excel Discussion (Misc queries) 4 January 17th 08 04:10 PM
Email error Object dosen't support this property or method Steved Excel Programming 10 August 31st 05 11:25 PM
Object doesn't support this property or method (Error 438) Kiran Excel Discussion (Misc queries) 1 July 12th 05 08:42 PM
Run Time Error 438 - Object doesn't support the property or method Paul Cottier Excel Programming 0 September 10th 04 01:27 AM
Object not supporting property or method Stuart[_5_] Excel Programming 3 August 23rd 03 07:45 AM


All times are GMT +1. The time now is 10:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"