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: 4,391
Default No Worksheet Range Object in VSTO?

Ray,
In Excel, ActiveSheet does not have to be a worksheet. It can be a Chart or
Macro sheet.
As such, you do not get Intellisense when using it as it's possible members
are not known until runtime.
Not sure how this appears in VSTO.
But ActiveSheet.Range("A1").Value=100 is certianly valid VBA.

Also, "Sheet" is a member of the PublishObject, but again don't know if
using an object name in VSTO is the cause.

NickHK

"Ray Price" wrote in message
...
The VSTO API reference says that the worksheet object has a range
property...


http://msdn2.microsoft.com/en-us/lib...(VS .80).aspx

But in my code I have...
Excel.Worksheet sheet = Application.ActiveSheet;

but then

Sheet.Range does exist

Anyone know what's going on here? I am quickly losing patience with VSTO.



Thanks




 
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
embed an object that links to a specific worksheet or range maggiewall Excel Worksheet Functions 0 January 10th 07 11:34 PM
Range object and worksheet change event Paulymon Excel Programming 3 September 26th 06 08:06 AM
VSTO: insert one row into a 1-row range jj_online Excel Programming 0 June 23rd 06 03:17 AM
Range Question / error 1004: method Range of object Worksheet has failed Paul Excel Programming 3 April 7th 05 02:56 PM
VSTO .net - Adding a Usercontrol unto Worksheet pxiong Excel Programming 0 February 13th 04 08:07 PM


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