Excel intranet problem

G

grovesy

Hi all. this is an excel/vba/web problem let me explain.

I have an excel file with vba that allows users to generate a calenda
style workload so we can see what they are currently working on.

I now have all of this system working and the user can press a butto
that saves on the the worksheets to a new file (I have done this). Thi
file is saved on a server.

I then have a small intranet that links to this file so anyone withi
the company can see what a user is working on, the problem is this...

... If a user is "viewing" someones workload excel sheet and, at th
same time, the person who owns the worksheet updates it and then click
the button that saves the file to the server again (affectivl
overwriting the old one) this user gets an error because someone i
viewing it, therefore it is open!!!

Any ideas how I can fix this? Would making the excel file ReadOnly
work?? Can I get the webpage to open the excel "workload" fil
differently so it makes a local copy or something?

Cheers ;
 
G

grovesy

If its any help I use this code to currently save the worksheet to th
server


Code
-------------------

Sub Publish()
Dim calendarName As String
Sheet2.Copy
calendarName = "//server/taskview/john.xls"
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs (calendarName)
Application.DisplayAlerts = True
ActiveWorkbook.Close
End Sub

-------------------


and to view this document in the webpage i just have a link that link
directly to it


Code
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top