Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default excel range selection

Refer the worksheet object. (VB code)

Dim ws as Excel.Worksheet
SEt ws = Worksheets("Sheet1")
Msgbox ws.Range("A1")

If this post helps click Yes
---------------
Jacob Skaria


"faffo1980" wrote:

Hi all,
I'm working in c# with Excel.Range objects.
I would like to know if the Exce.range object always refers to the active
sheet or if it can refer to a different sheet. I mean: may I work on a range
of cell belonging to a sheet different from the active one?

Thanks,

faffo1980

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
Change InputBox Range Selection to Column Letter Selection intoit Excel Programming 2 July 21st 09 07:58 AM
How do you do a range selection dialog like those many in Excel? LunaMoon Excel Programming 2 July 31st 08 04:22 PM
Range(Selection, Selection.End(xlToRight)).Select Dave Birley Excel Programming 2 June 6th 07 04:53 PM
Excel VBA help - Range selection Harimau Excel Programming 5 February 26th 07 12:35 PM
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. jonH Excel Programming 3 June 7th 04 09:13 PM


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