Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
raisin
 
Posts: n/a
Default workbook1 data to workbook2 data


hi there, does anyone knows the code to grab data from one workbook's
worksheet to another workbook's worksheet? i only know the code from
worksheet to worksheet. actually i got alot of files. so i have to grab
the values from diff workbook. i also only have the code to grab the
workbook.but it cannot paste the values into another workbook..
thanks for ur help!!!
=)

the code i'm using to grab the file:

'GrabWorkbook
Dim tstWkbk As Workbook
Set tstWkbk = Nothing
On Error Resume Next
Set tstWkbk = Workbooks("Book2.xls")
On Error GoTo 0
If tstWkbk Is Nothing Then
On Error Resume Next
Set tstWkbk = Workbooks.Open(Filename:="D:\Documents and
Settings\Administrator\Desktop\Book2.xls")
On Error GoTo 0
End If


--
raisin
------------------------------------------------------------------------
raisin's Profile: http://www.excelforum.com/member.php...o&userid=29141
View this thread: http://www.excelforum.com/showthread...hreadid=507158

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default workbook1 data to workbook2 data

You can bring in data from other workbooks without using code if you
wish.......

='C:\[book1test.xls]Sheet1'!$A$1

This formula will bring in the value from the Workbook, Sheet, and Cell
specified......you can have one sheet bring in values from many other
workbooks/sheets/cells.........

hth
Vaya con Dios,
Chuck, CABGx3



"raisin" wrote:


hi there, does anyone knows the code to grab data from one workbook's
worksheet to another workbook's worksheet? i only know the code from
worksheet to worksheet. actually i got alot of files. so i have to grab
the values from diff workbook. i also only have the code to grab the
workbook.but it cannot paste the values into another workbook..
thanks for ur help!!!
=)

the code i'm using to grab the file:

'GrabWorkbook
Dim tstWkbk As Workbook
Set tstWkbk = Nothing
On Error Resume Next
Set tstWkbk = Workbooks("Book2.xls")
On Error GoTo 0
If tstWkbk Is Nothing Then
On Error Resume Next
Set tstWkbk = Workbooks.Open(Filename:="D:\Documents and
Settings\Administrator\Desktop\Book2.xls")
On Error GoTo 0
End If


--
raisin
------------------------------------------------------------------------
raisin's Profile: http://www.excelforum.com/member.php...o&userid=29141
View this thread: http://www.excelforum.com/showthread...hreadid=507158


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
Excel 2003, Convert EXISTING Worksheet Data to XML? [email protected] Excel Discussion (Misc queries) 4 November 16th 05 04:45 AM
Charts not recognizing source data if original linked data is changed. JLC Charts and Charting in Excel 3 October 14th 05 01:29 AM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
Macro to Synchronize data frm svrl workbooks & columns to 1 workbo jbsand1001 Excel Discussion (Misc queries) 1 April 28th 05 10:42 AM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM


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