Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Worksheet saving of Ranges ...

Hi,

I am struggling to find out the way to get the selected range on all
the worksheet of workbook when the workbook is opened using some APIs
in VBA. What I mean is:

1. Create a new workbook say having three worksheets (Sheet1, Sheet2,
Sheet3)
2. Goto Sheet1 and select range : A1: A10
3. Goto Sheet2 and select range : B1: B10
4. Goto Sheet3 and select range : C1: C10
5. Now Save and close the workbook.
6. Reopen the workbook
7. If I switch between the sheets I can see the selected range at the
time of closing the workbook.
8. So if there a way by which I can get all these ranges when I open
the workbook.

Please help.

Thanks and With Warm Regards,

-Rahul Vakil
--

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Excel Worksheet saving of Ranges ...

RV,
There is only one selection recognized by Excel and that is the
selection in the active window.
So you must activate each sheet and then read the selection address
for that particular sheet.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)


"RV"
wrote in message
Hi,
I am struggling to find out the way to get the selected range on all
the worksheet of workbook when the workbook is opened using some APIs
in VBA. What I mean is:

1. Create a new workbook say having three worksheets (Sheet1, Sheet2,
Sheet3)
2. Goto Sheet1 and select range : A1: A10
3. Goto Sheet2 and select range : B1: B10
4. Goto Sheet3 and select range : C1: C10
5. Now Save and close the workbook.
6. Reopen the workbook
7. If I switch between the sheets I can see the selected range at the
time of closing the workbook.
8. So if there a way by which I can get all these ranges when I open
the workbook.

Please help.

Thanks and With Warm Regards,

-Rahul Vakil
--

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
Dynamic named ranges not saving Michael Beckinsale Excel Programming 2 March 23rd 06 01:56 PM
Saving ranges as GIFs Ben Excel Programming 5 September 10th 05 10:56 PM
Saving Excel ranges as database tables Peter Excel Discussion (Misc queries) 2 December 17th 04 08:15 PM
how do I name ranges in an Excel worksheet becca122121 Excel Worksheet Functions 4 November 8th 04 06:14 PM
Saving files with names from ranges Maria[_6_] Excel Programming 7 November 9th 03 09:21 PM


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