Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 296
Default Copying a Range from a Workbook without opening in memory.

Hi,

Is it possible to copy a known range from a workbook that is not open,
and paste that range into an open workbook?

Usual TIA


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Copying a Range from a Workbook without opening in memory.

Richard,

It sepends on whether you want values or everything (formatting, formulas, etc.).

If you want just values, you can create a link to the cells that you want, and won't need to open
the file. Otherwise, you need to open the file to do the copy.

HTH,
Bernie
MS Excel MVP


"Richard Buttrey" wrote in message
...
Hi,

Is it possible to copy a known range from a workbook that is not open,
and paste that range into an open workbook?

Usual TIA


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Copying a Range from a Workbook without opening in memory.

You can extract data from a closed workbook. If your range is set up like a
databasae, you can use ADO.
http://www.erlandsendata.no/english/...php?t=envbadac

You can use formulas (probably the fastest)

With Range("a1:Z26")
.formula = "='C:\My Folder\[MyFile.xls]Sheet1'!A1"
' now replace the formulas with the value returned
.Formula = .Value
End With

--
Regards,
Tom Ogilvy




"Richard Buttrey" wrote:

Hi,

Is it possible to copy a known range from a workbook that is not open,
and paste that range into an open workbook?

Usual TIA


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Copying a Range from a Workbook without opening in memory.

You can download a ADO example here
http://www.rondebruin.nl/ado.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Richard Buttrey" wrote in message ...
Hi,

Is it possible to copy a known range from a workbook that is not open,
and paste that range into an open workbook?

Usual TIA


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________



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
Copying a range from one workbook to another workbook caldog Excel Programming 1 March 27th 06 03:39 AM
Copying a range from one workbook to another workbook caldog Excel Programming 0 March 26th 06 11:45 PM
opening & copying to a workbook mwc0914[_8_] Excel Programming 0 November 18th 05 06:12 PM
Copying range to other workbook Excelerate-nl Excel Programming 3 September 23rd 05 12:49 PM
Problem copying a range to a different workbook [email protected] Excel Programming 3 December 8th 04 01:43 AM


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