Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm trying extract data, while using a macro, from one workbook file to
another. How do I do this? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I extract a picture from an excel file and save it elsewhere? | Excel Discussion (Misc queries) | |||
Any way to create an Excel file from data in Word? | Excel Discussion (Misc queries) | |||
How do I extract an Excel Chart as a graphics file? | Excel Worksheet Functions | |||
Create a pdf with web links from file created in excel | Excel Discussion (Misc queries) | |||
How to Create a pdf with web links from file created in excel? | Excel Discussion (Misc queries) |