PC Review


Reply
Thread Tools Rate Thread

Reading data from an excel sheet and writing to another

 
 
=?Utf-8?B?UmFpbg==?=
Guest
Posts: n/a
 
      18th Jan 2005
Hi,

I had read about reading data from a closed workBook, on this forum a while
ago.
Reference link:
http://www.rondebruin.nl/ado.htm

I am using this function as below:
GetDataSheet ThisWorkbook.Path & "\Book2.xls", "Sheet1", ActiveCell, True

I modified the function to the effect that the entire sheet gets selected
instead of a range of cells.

Kindly refer http://www.rondebruin.nl/ado.htm for function GetDataSheet

The data (Say) on Book2.Sheet1 is as below:

ABC 123 56 DEF 345 0.5
ABC 23 76 DEF 375 0.7
ABC 523 56 DEF 45 0.6

On the resulting sheet, the first row which contains numbers is getting
changed to
F(column number) as in

First Row: ABC F2 F3 DEF F4 F5

All I want is to copy data on a specified sheet on a workbook to the current
sheet without opening the source file.

Any thought?

TIA

 
Reply With Quote
 
 
 
 
Jamie Collins
Guest
Posts: n/a
 
      19th Jan 2005
Rain wrote:
> Kindly refer http://www.rondebruin.nl/ado.htm for function

GetDataSheet
>
> On the resulting sheet, the first row which contains numbers is

getting
> changed to
> F(column number) as in
>
> First Row: ABC F2 F3 DEF F4 F5
>


Change HDR=Yes to HDR=No (HDR specifies whether the source has column
headers).

Jamie.

--

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading data from one sheet into another sheet crae Microsoft Excel Misc 1 21st Oct 2009 04:22 PM
Duplicate sheet, autonumber sheet, record data on another sheet des-sa Microsoft Excel Worksheet Functions 0 8th May 2008 06:56 PM
Writing data from one sheet to another template sheet and change the filename freeblue11@gmail.com Microsoft Excel Discussion 1 2nd Nov 2006 04:15 AM
Reading Writing Data from One WorkBook to Another John Pierce Microsoft Excel Programming 0 30th May 2005 09:23 PM
reading, writing, then re-reading a CDR Russ Windows XP General 5 22nd Oct 2003 09:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 AM.