Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Why do I still need to cast "Range selected = (Range) app.Selection;" ???

I have an VBA xla that I remade to VB6-com addin 3 years ago. Now I
thought it was time to update it. I installed VS2008, latest VSTO and
the latest VSTO powertoys.

I was hoping that at last I would be able to do TYPED programming for
Excel, i.e. instead of

Range selected = (Range) app.Selection; "

I write

Range selected = app.Selection; "

Is this still a dream? Or what have I missed?

In VB6 and VBA is still better than VSTO, since in the former I can at
least se the type of the type of the object in the watch-window. In
VS2008, all I get is that it is a proxy.

Should I wait for Excel 2009 until looking into this?

-- Mattias
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
Hide all "except" the visible selected range(s)? Spiky Excel Worksheet Functions 2 August 4th 08 09:56 PM
Hide all "except" the visible selected range(s)? Pierre Excel Worksheet Functions 0 August 2nd 08 07:17 PM
Hide all "except" the visible selected range(s)? Pierre Excel Worksheet Functions 2 August 1st 08 09:21 PM
Sort of range leaves range "selected" Mike Jamesson Excel Programming 3 July 25th 08 06:46 PM
Setting "r" to = range selected in an IF statement? Simon Lloyd[_805_] Excel Programming 4 July 1st 06 05:53 PM


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