Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a Macro that copies data to another Workbook. Is it possible to
execute this code without having to actually open up the second Workbook?? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John,
If you use ADO (and what you want to do is suitable for this), the workbook is not opened in the same sense as Excel automation. NickHK "John" wrote in message ... I have a Macro that copies data to another Workbook. Is it possible to execute this code without having to actually open up the second Workbook?? Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the reply Nick but I'm not sure what ADO is, I've looked it up
under Functions but can't seem to find it "Nick Cranham" wrote in message ... John, If you use ADO (and what you want to do is suitable for this), the workbook is not opened in the same sense as Excel automation. NickHK "John" wrote in message ... I have a Macro that copies data to another Workbook. Is it possible to execute this code without having to actually open up the second Workbook?? Thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John,
Active Data Objects. A way of connecting to data sources, databases, text files, etc and Excel and performing SQL queries. You can't do any formatting etc to the workbook, but you can update and retrieve data. NickHK "John" wrote in message ... Thanks for the reply Nick but I'm not sure what ADO is, I've looked it up under Functions but can't seem to find it "Nick Cranham" wrote in message ... John, If you use ADO (and what you want to do is suitable for this), the workbook is not opened in the same sense as Excel automation. NickHK "John" wrote in message ... I have a Macro that copies data to another Workbook. Is it possible to execute this code without having to actually open up the second Workbook?? Thanks |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John,
Be aware that this is not trivial, will take a degree of learning re ADO, good workbook design, and a fair amount of code. IMO it would be simpler just to open the workbook, do your stuff, and close it. Pragmatism v knowledge, the choice is yours. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "John" wrote in message ... Thanks for the reply Nick but I'm not sure what ADO is, I've looked it up under Functions but can't seem to find it "Nick Cranham" wrote in message ... John, If you use ADO (and what you want to do is suitable for this), the workbook is not opened in the same sense as Excel automation. NickHK "John" wrote in message ... I have a Macro that copies data to another Workbook. Is it possible to execute this code without having to actually open up the second Workbook?? Thanks |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John,
That's sound advice from Bob, (I'm not even recommending it) but if you really do not want to open the workbook for some reason, that's about the only route to go. Nick "Bob Phillips" wrote in message ... John, Be aware that this is not trivial, will take a degree of learning re ADO, good workbook design, and a fair amount of code. IMO it would be simpler just to open the workbook, do your stuff, and close it. Pragmatism v knowledge, the choice is yours. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "John" wrote in message ... Thanks for the reply Nick but I'm not sure what ADO is, I've looked it up under Functions but can't seem to find it "Nick Cranham" wrote in message ... John, If you use ADO (and what you want to do is suitable for this), the workbook is not opened in the same sense as Excel automation. NickHK "John" wrote in message ... I have a Macro that copies data to another Workbook. Is it possible to execute this code without having to actually open up the second Workbook?? Thanks |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Depends on what you want to do. If you want to retrieve some values from a
sheet in a closed workbook, you could always have your code put a linking formula in the appropriate cells, then replace the formulas with the displayed values. This is generally the fastest method as well. -- Regards, Tom Ogilvy "Nick Cranham" wrote in message ... John, That's sound advice from Bob, (I'm not even recommending it) but if you really do not want to open the workbook for some reason, that's about the only route to go. Nick "Bob Phillips" wrote in message ... John, Be aware that this is not trivial, will take a degree of learning re ADO, good workbook design, and a fair amount of code. IMO it would be simpler just to open the workbook, do your stuff, and close it. Pragmatism v knowledge, the choice is yours. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "John" wrote in message ... Thanks for the reply Nick but I'm not sure what ADO is, I've looked it up under Functions but can't seem to find it "Nick Cranham" wrote in message ... John, If you use ADO (and what you want to do is suitable for this), the workbook is not opened in the same sense as Excel automation. NickHK "John" wrote in message ... I have a Macro that copies data to another Workbook. Is it possible to execute this code without having to actually open up the second Workbook?? Thanks |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think pragmatism will win out on this occasion Bob.
Thanks "Bob Phillips" wrote in message ... John, Be aware that this is not trivial, will take a degree of learning re ADO, good workbook design, and a fair amount of code. IMO it would be simpler just to open the workbook, do your stuff, and close it. Pragmatism v knowledge, the choice is yours. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "John" wrote in message ... Thanks for the reply Nick but I'm not sure what ADO is, I've looked it up under Functions but can't seem to find it "Nick Cranham" wrote in message ... John, If you use ADO (and what you want to do is suitable for this), the workbook is not opened in the same sense as Excel automation. NickHK "John" wrote in message ... I have a Macro that copies data to another Workbook. Is it possible to execute this code without having to actually open up the second Workbook?? Thanks |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Understandable<G
Bob "John" wrote in message ... I think pragmatism will win out on this occasion Bob. Thanks "Bob Phillips" wrote in message ... John, Be aware that this is not trivial, will take a degree of learning re ADO, good workbook design, and a fair amount of code. IMO it would be simpler just to open the workbook, do your stuff, and close it. Pragmatism v knowledge, the choice is yours. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
closed workbook macro | Excel Discussion (Misc queries) | |||
Create Move Macro for Closed Workbook | Excel Discussion (Misc queries) | |||
Value from a closed workbook | Excel Discussion (Misc queries) | |||
copy worksheet from closed workbook to active workbook using vba | Excel Worksheet Functions | |||
how to run macro of closed excel workbook using VBA | Excel Programming |