Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default create links to extract data from one excel file to another excel

I'm trying extract data, while using a macro, from one workbook file to
another. How do I do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default create links to extract data from one excel file to another excel

I'd start by recording a macro when I did it manually.

Sundew Chocobo wrote:

I'm trying extract data, while using a macro, from one workbook file to
another. How do I do this?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default create links to extract data from one excel file to another excel

If you are just getting the data, you don't need a link. For example, we
want to get Book1 Sheet1 cell A1 data and put it into Book2 Sheet2 cell B2:

Sub get_it()
Set rFrom = Workbooks("Book1").Sheets("Sheet1").Range("A1")
Set rTo = Workbooks("Book2").Sheets("Sheet2").Range("B2")
rFrom.Copy rTo
End Sub

If not in a macro, then in Book2 Sheet2 cell B2 enter:
=[Book1]Sheet1!$A$1


--
Gary''s Student - gsnu200722
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default create links to extract data from one excel file to another ex

I'm afraid it's a bit more complicated than that... Wookbook 'a' contains one
column with cust. numbers (let's say one cust. number is called 'f') and one
will display either a 'd', 'c', or blank. In workbook 'b' I need to create a
column which will find the newest cust number for 'f' from wookbook 'a' (the
cust. number can be listed serval times) and pick up either the 'd', 'c', or
nothing.

"Gary''s Student" wrote:

If you are just getting the data, you don't need a link. For example, we
want to get Book1 Sheet1 cell A1 data and put it into Book2 Sheet2 cell B2:

Sub get_it()
Set rFrom = Workbooks("Book1").Sheets("Sheet1").Range("A1")
Set rTo = Workbooks("Book2").Sheets("Sheet2").Range("B2")
rFrom.Copy rTo
End Sub

If not in a macro, then in Book2 Sheet2 cell B2 enter:
=[Book1]Sheet1!$A$1


--
Gary''s Student - gsnu200722

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default create links to extract data from one excel file to another excel

Have a look at Ron de Bruin's Copy/Paste/Merge examples.

http://www.rondebruin.nl/tips.htm


Gord Dibben MS Excel MVP

On Thu, 17 May 2007 08:07:02 -0700, Sundew Chocobo
wrote:

I'm trying extract data, while using a macro, from one workbook file to
another. How do I do this?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default create links to extract data from one excel file to another ex

is it helpful???

"Gord Dibben" wrote:

Have a look at Ron de Bruin's Copy/Paste/Merge examples.

http://www.rondebruin.nl/tips.htm


Gord Dibben MS Excel MVP

On Thu, 17 May 2007 08:07:02 -0700, Sundew Chocobo
wrote:

I'm trying extract data, while using a macro, from one workbook file to
another. How do I do this?



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default create links to extract data from one excel file to another ex

is there an easier way to do this... without the macro

"Sundew Chocobo" wrote:

is it helpful???

"Gord Dibben" wrote:

Have a look at Ron de Bruin's Copy/Paste/Merge examples.

http://www.rondebruin.nl/tips.htm


Gord Dibben MS Excel MVP

On Thu, 17 May 2007 08:07:02 -0700, Sundew Chocobo
wrote:

I'm trying extract data, while using a macro, from one workbook file to
another. How do I do this?



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default create links to extract data from one excel file to another excel

Thanks for all the help. :) If you have more ideas, please post.

Thanks again


Sundew Chocobo

"Sundew Chocobo" wrote:

I'm trying extract data, while using a macro, from one workbook file to
another. How do I do this?

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
Can I extract a picture from an excel file and save it elsewhere? TiinaN Excel Discussion (Misc queries) 2 March 30th 07 02:41 PM
Any way to create an Excel file from data in Word? putty Excel Discussion (Misc queries) 1 June 19th 06 07:50 PM
How do I extract an Excel Chart as a graphics file? Dick Hanneman Excel Worksheet Functions 7 May 6th 06 03:05 AM
Create a pdf with web links from file created in excel [email protected] Excel Discussion (Misc queries) 0 February 3rd 05 09:11 PM
How to Create a pdf with web links from file created in excel? sweetlew Excel Discussion (Misc queries) 0 February 3rd 05 09:11 PM


All times are GMT +1. The time now is 10:26 PM.

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"