473,406 Members | 2,954 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,406 software developers and data experts.

VB6 & Excel Read only problem

104 100+
Hi all, Have created a vb application that interacts with Excel for report purposes. Base application and excel file is on host pc on network. I require the clients to access the excel workbook for reports and then enter data as required. All works perfect other than workbook opening on guest workstations as read only! I have done everything i could think of to correct this. Set sharing on host, tried mapping a network drive, checked the file attributes were not read only. Has anyone else got any ideas as to what to try. Bit defender is the anti virus, so maybe that has something to do with it, but you cannot acces it to set any form of permissions. I have even tried writing the excel launch command into the shortcut to force it open normal. Did not work. Opens fine on host machine.

"C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE" "X:\program files\mps1\report.XLS"

Would appreciate in input into this - thanks
Werner
Nov 2 '07 #1
7 3153
Would it be an option to let the user click through the path to open the file and only allow the specified filename? - In case the drives are mapped with different letter for different departments I use this way.
Nov 2 '07 #2
Wernerh
104 100+
Would it be an option to let the user click through the path to open the file and only allow the specified filename? - In case the drives are mapped with different letter for different departments I use this way.
I have tried that too! Made the shortcut directly to the actual file, drivepath and specific file - same problem.
Nov 2 '07 #3
Hi Member


First of all Make sure all Object varibales whether released from memory or not.

that means if you use File system object
at the end of program, all object varibales should be released from memory.
because this variable link with that file until you will clear the variable


Regards
Prakashsakthivel
Nov 2 '07 #4
Wernerh
104 100+
Hi Member


First of all Make sure all Object varibales whether released from memory or not.

that means if you use File system object
at the end of program, all object varibales should be released from memory.
because this variable link with that file until you will clear the variable


Regards
Prakashsakthivel
I do that as a rule, when the VB project closes all objects are unloaded. I made double sure by rebooting the host and then only opening the excel file from the guest without activating the vb app.
Nov 2 '07 #5
Wernerh
104 100+
I do that as a rule, when the VB project closes all objects are unloaded. I made double sure by rebooting the host and then only opening the excel file from the guest without activating the vb app.
Do you think the VBA in the workbook could have that as an issue?
Nov 2 '07 #6
Do you think the VBA in the workbook could have that as an issue?

What I try to say that not close the application
only close function or procedure
at that time few milliseconds that varibale may link with that file
meanwhile you try to open that file, this error may come


Regards

Prakashsakthivel
Nov 2 '07 #7
Wernerh
104 100+
What I try to say that not close the application
only close function or procedure
at that time few milliseconds that varibale may link with that file
meanwhile you try to open that file, this error may come


Regards

Prakashsakthivel
Ok, understand that, but the function is a pure write to excel from vb function. once completed, there is no more link. That is why I said i rebooted to clear all or any links that might exist. Then just tried to open the workbook accross the network as if is was any standalone excel file. It is very puzzling.
Nov 2 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: David Alliet | last post by:
Hello, I'm having a bit of a problem with ASP and Excel. A client has developed his own program, which calculates alot of financial stuff, in excel. I'm doing his websites and he has requested...
1
by: | last post by:
The following code: Private Sub ClearControls(ByVal ctrl As Control) Dim i As Int32 For i = ctrl.Controls.Count - 1 To 0 Step -1 ClearControls(ctrl.Controls(i))
4
by: Lewis Edward Moten III | last post by:
I have a file that users can download through a web page protected by forms authentication: Download.aspx?ID=45 and within that file ... FileInfo fileToDownload = new FileInfo(fileName);
6
by: Phoebe. | last post by:
Hi, Good Day! How can I read data from excel file and save them into a recordset? Can someone help? Thanks in advanced. rgds, Phoebe.
2
by: Bill Nguyen | last post by:
Need to update all records in a table from a simple Excel worksheet (1 sheet with 5 columns). I need help with the basic steps to open and read each data row in the Excel file. Thanks a million...
10
by: steve | last post by:
hi i am writing a C program which can read TEXT , PDF,.DOC files the program is to : count the number of words, lines, characters and the frequency of each word and the phrases count in...
2
by: Mariii | last post by:
Hello! I have a question. I work with Excel from VC++ application. I read csv-file, reorganize it and put data into Excel-file using CApplication app.CreateDispatch(_T("Excel.Application)); ......
2
by: JimLad | last post by:
Hi, First of all I didn't design this website, but I have been asked to fix it with the minimum fuss! Website is using .NET on IIS6 with an Excel Interop to produce reports. The website...
0
by: Noob | last post by:
Hello, I created an ERP based custom report using Access '03 & Excel '03. I developed an Access query that pulls the required data from the ERP (Progress) database via link tables. I use Excel...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.