LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default .cells not applicable to range


Tom Ogilvy wrote:
With wsExtFrom
Set rCopy = .Range(.Cells(lCopyRow, lExtrFromCol), _
.Cells(lCopyRow, lExtrToCol))
End with
msgbox rcopy.Address(0,0,xla1,true)


Sorry, Tom, didn't see your reply until today.

Got the with statement needing to be there. What is the "msgbox
rcopy.address(0,0,xla1, true) for?


--
Regards,
Tom Ogilvy


"davegb" wrote:

I've been fooling with this line of code for over an hour. For some
reason, VBA won't accept ".cells" as a property or method or event of
..range today. Getting a "method range of object worksheet failed"
error. Any ideas? VBA help doesn't even recognize "cells" at all, so no
help there. But it is in the Object Browser shown as being ok with a
range and a range being ok with a worksheet.

Set rCopy = wsExtFrom.Range(.Cells(lCopyRow, lExtrFromCol),
..Cells(lCopyRow, lExtrToCol))

I've tried it with and without the periods in front of "cells".

All of the variables show in the "list" of applicable variables. I'm
stumped, again.

Thanks in advance.





 
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
to sum the quantity of only applicable for last 7 days from today Narnimar Excel Discussion (Misc queries) 2 December 21st 07 03:43 PM
Find Applicable Formula, then Use It MSYM Excel Worksheet Functions 5 January 31st 07 09:52 PM
Splitting cells using formula; RIGHT/LEFT not applicable Mitch Excel Worksheet Functions 6 May 16th 06 07:46 AM
VBA Problem - How to collect and display text information from applicable cells. LegaLega Excel Programming 0 June 8th 04 07:17 PM
How mk code applicable to any active workbook? Chet Shannon Excel Programming 2 April 5th 04 03:12 PM


All times are GMT +1. The time now is 03:56 PM.

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"