Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default OLE automation - use of .selection

Dear Excel users,

I'm having problems trying to use the .selection property from VB code
within an MS Access module. It doesn't seem to be available! It's
available within Excel. I want to sort a spreadsheet using OLE
automation. The code for doing this within Excel selects the range and
uses the '.selection' property for executing the sort. This property
doesn't show up in the 'intellisense' options and an error is
generated when I attempt to use it.

Any ideas on what's going on, or how to execute a spreadsheet sprt
using automation, would be gratefully received.

Thanks.

Richard Abrahams
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default OLE automation - use of .selection

assume your reference to the excel application is oxlapp

then do

oxlapp.Selection

--
Regards,
Tom Ogilvy

"Richard Abrahams" wrote in message
om...
Dear Excel users,

I'm having problems trying to use the .selection property from VB code
within an MS Access module. It doesn't seem to be available! It's
available within Excel. I want to sort a spreadsheet using OLE
automation. The code for doing this within Excel selects the range and
uses the '.selection' property for executing the sort. This property
doesn't show up in the 'intellisense' options and an error is
generated when I attempt to use it.

Any ideas on what's going on, or how to execute a spreadsheet sprt
using automation, would be gratefully received.

Thanks.

Richard Abrahams



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
Limiting selection in a cell AND linking that selection to a list Lisa Excel Discussion (Misc queries) 1 July 28th 09 05:00 PM
Copy Selection - Transpose Selection - Delete Selection Uninvisible Excel Discussion (Misc queries) 2 October 23rd 07 04:18 PM
Identifying a selection of a selection of a range swimfast Excel Worksheet Functions 1 March 1st 07 02:51 AM
limit cell list selection based on the selection of another list lorraine Excel Worksheet Functions 2 December 14th 04 08:17 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 12:13 AM.

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"