Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macros problem with XP
For SEVERAL years our accounting department has been using macros set up in
Excel to import data into our Peachtree Accounting software. (I did not set these macros up, nor know how to!) We recently got new computers that have Windows XP Professional. When we try to run the Macros the following error comes up: "Remote Data not accessible. Start application 'PEACHW.EXE'?" Even when you click yes, the following message comes up: "The Peachtree accounting program must be running in the background before running this function. Start Peachtree then try again." I have tried having Peachtree open, closed, just about anything I can think of. I don't want to change the macros because they are working just fine for our Windows 98 machines. Please help! Let me know if you need additional information. Even our IT consultant is currently stumped. ~Gretchen |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macros problem with XP
It would help if you could post the macro code. The most important part is
where it is trying to do the import and it obviously is checking to see if Peachtree is running. The solution will depend on what method the macro uses to see if Peachtree is open. The error messages you note must be "hard coded" in the macro code, so the code that surrounds those messages would be key to understanding what is happening. "Gretchen Hembree" wrote: For SEVERAL years our accounting department has been using macros set up in Excel to import data into our Peachtree Accounting software. (I did not set these macros up, nor know how to!) We recently got new computers that have Windows XP Professional. When we try to run the Macros the following error comes up: "Remote Data not accessible. Start application 'PEACHW.EXE'?" Even when you click yes, the following message comes up: "The Peachtree accounting program must be running in the background before running this function. Start Peachtree then try again." I have tried having Peachtree open, closed, just about anything I can think of. I don't want to change the macros because they are working just fine for our Windows 98 machines. Please help! Let me know if you need additional information. Even our IT consultant is currently stumped. ~Gretchen |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macros problem with XP
Thanks for posting the code: it is very long and complex! I can only make a
few observations since, firstly, I don't have the time to do extensive debugging, secondly, I don't have any way to test the setup (I don't have or know much about Peachtree) and finally, the use of Dynamic Data Exchange (DDE) is something I am only slightly experienced with. But I can perhaps provide some info to help your IT staff work on this. The VBA code here is using DDE to access Peachtree. DDE is a way for applications to share data. Here is one example of where the code invokes DDE, from the GenerateInvoice function (there are similar instances in most of the "GenerateXxxx" functions): On Error GoTo ErrorHandler ' Enable error-handling routine. ' Channel = Application.DDEInitiate("PeachW", COMPANY) ' DDEPoke Channel, "Password", Range("PWord") Then the error handler gives the error message you are seeing: ErrorHandler: ' Error-handling routine. Sheets("Status").Visible = False Sheets("Payroll_Calc").Select MsgBox ("The Peachtree accounting program must be running in the background before running this function. Start Peachtree then try again.") Now, in DDE you first establish communication with the other application by setting up a channel - that is what the Channel = Application.DDEInitiate() line is trying to do. Then it uses DDEPoke statements to send information or instructions to the other app, or a DDERequest to get data from it. It is erroring out somewhere in that process - I suspect it is in the DDEInitiate statement. Don't know what may have changed in XP that would affect this, or if maybe it is something different in the machine setup that makes it not find Peachtree when it looks for it. For example, the DDEInitiate refers to Peachtree only as "PeachW" - no path, no extension - does the XL setup recognize this? Is Peachtree in the default file path? If that changed, perhaps that is why it can't find it. For more info, here is a link to the DDE section of the MSDN library http://msdn.microsoft.com/library/de...DEInitiate.asp Sorry I can't do more, hope this contributes at least something to help others find the solution! "Gretchen Hembree" wrote: For SEVERAL years our accounting department has been using macros set up in Excel to import data into our Peachtree Accounting software. (I did not set these macros up, nor know how to!) We recently got new computers that have Windows XP Professional. When we try to run the Macros the following error comes up: "Remote Data not accessible. Start application 'PEACHW.EXE'?" Even when you click yes, the following message comes up: "The Peachtree accounting program must be running in the background before running this function. Start Peachtree then try again." I have tried having Peachtree open, closed, just about anything I can think of. I don't want to change the macros because they are working just fine for our Windows 98 machines. Please help! Let me know if you need additional information. Even our IT consultant is currently stumped. ~Gretchen |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macros problem with XP
Maybe "Ignore Other apps" on Tools-general is checked. This is an DDE
blocking feature of Excel Dm Unseen. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Problem with Macros | Excel Discussion (Misc queries) | |||
Macros Problem | Excel Discussion (Misc queries) | |||
Problem with running Macros | Excel Discussion (Misc queries) | |||
macros execution problem | Excel Programming | |||
Problem with macros on Mac | Excel Programming |