473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help with Excel VBA

Hi,

I am running an Excel Application that uses a Control Button to invoke a
java application that performs some computation and writes the results to a
text file. The VB code behind the Button calls the VB procedure Shell() to
invoke the java application. The problem is, when the java application is
run from Excel/VBA the file doesn't get written. This is not the case
when the java application is invoked from either JBuilder or a Command
Prompt Window. Does Excel/VBA block the writing of files while running, or
is this a memory thing? Any insights would be welcome? The irritating
thing is that java doesn't throw any exceptions, the file just doesn't get
written.

Regards,

\ jon
Aug 22 '05 #1
2 8003
DJP
Are you specifying the full path to the text file within your Java code? If
not, you might find that the text file is actually being written, but to the
Excel default save folder (eg. <your profile>\My Documents).

"Jon Spragg" <jo********@btconnect.com> wrote in message
news:de**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
Hi,

I am running an Excel Application that uses a Control Button to invoke a
java application that performs some computation and writes the results to
a
text file. The VB code behind the Button calls the VB procedure Shell()
to
invoke the java application. The problem is, when the java application is
run from Excel/VBA the file doesn't get written. This is not the case
when the java application is invoked from either JBuilder or a Command
Prompt Window. Does Excel/VBA block the writing of files while running,
or
is this a memory thing? Any insights would be welcome? The irritating
thing is that java doesn't throw any exceptions, the file just doesn't get
written.

Regards,

\ jon

Aug 25 '05 #2
pellem
3
Are you sure Shell has finished executing before checking for the file?

Also, in Excel you can check 'Tools'->'Macro'->'Security'.
This may affect it if if set to high.
Sep 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Marc | last post by:
Hi all, I am trying to write an application where I need the ability to open an Excel spreadsheet and do basic read/write, insert rows, and hide/unhide rows. Using win32com I have been able to...
9
by: netpurpose | last post by:
I need to extract data from this table to find the lowest prices of each product as of today. The product will be listed/grouped by the name only, discarding the product code - I use...
0
by: chrisben | last post by:
Hi, Developing Env: .NET Studio in C#, windows 2000 target: a COM object used for excel user (RTD) I have no problem to compile and run the project in my machine. The excel is working great...
5
by: David C. Allen | last post by:
I have a vb.net app that is controling excel 2000 thru the com interop interface. I have referenced the excel 9.0 library and have cut down the code in the problem subroutine to this: Dim...
2
by: Business Information Systems, Inc. | last post by:
I keep receiving the following error when I try to access Office XP Excel through VB.Net on a web form. I have loaded and registered the Microsoft Office XP PIAs. I have added a reference in...
0
by: fjlaga | last post by:
I wrote an Excel Add-In in VB.NET using Visual Studio .NET 2003 and the ..NET Framework version 1.1.4322 on my previous machine. This machine had MS Office 10 installed on it. With this...
1
by: Coleen | last post by:
To export data from a datagrid to an excel file. I am using VB.net/ASP.net v 2003, and not connecting to an SQL database. I have an existing datagrid that I want to get the data from and download...
9
by: pic078 via AccessMonster.com | last post by:
I need serious help - I have a frontend/backend Access database (2 MDE Files) that remains stuck in task manager after exiting the application - you can't reopen database after exiting as a result...
0
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About. The application...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.