Sheet used by multiple users

Voltz

New Member
Joined
May 6, 2014
Messages
26
HI to All,

I have been forllowing and learning for a long time but now i'm stack on my own and would appreciate your help.

I have a workbook (jobsheet.xlsm) that is used by 3 users, inputting data in there individual form and with a code data will be sent into the Jobsheet. So far so good, but if for any reason 1 of the user open the Jobsheet to check or edit something into it and while the sheet is open another user input more data, the new data will not be saved since it will be opened on another PC.
All workbooks including Jobsheet.xlsm is on a mapped Drive "T".

Is there a work around to make fool proof?

part of the code


Rich (BB code):
 [FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Sub copy_to_print_Jobsheet()
'
' Macro5 Macro
'
    Application.ScreenUpdating = False
'
    Range("a7:n7").Offset(Range("m2").Value, 0).Select
    Range(Selection, Selection.End(xlUp)).Select
    Selection.Copy
    Workbooks.Open "t:\Users\Documents\Orders\jobsheet.xlsm"
    Worksheets("JSH PRINT").Activate
    Range("A1").Select
    Selection.End(xlDown).Offset(1, 0).Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    With Selection.Borders(xlEdgeBottom)
        .LineStyle = xlDouble
        .Color = -16776961
         .TintAndShade = 0
            .Weight = xlThick
    End With
    Workbooks("jobsheet.xlsm").Save
    Workbooks("jobsheet.xlsm").Close
    Range("a8").Select
    Range("M6").Select
    Range("M6").Value = "Order Saved"
    Range("m1").Select
    Selection.Copy
    Range("L5").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    ActiveSheet.Protect
    
    
    
End Sub


Thanks

[/FONT]
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
but if for any reason 1 of the user open the Jobsheet to check or edit something into it and while the sheet is open another user input more data, the new data will not be saved since it will be opened on another PC.

Is there a work around to make fool proof?


Hi,
If you are using your JobSheet workbook as a database which your users write to via a template workbook, the database workbook as you discovered, cannot be opened in read / write mode whilst users need to write to it.

Not fool proof but you can reduce conflicts by providing an edit function in the template workbooks where users can call back a record. You need to develop code that would briefly open the database workbook in readonly mode, find and return the required record. Users can then edit it in their workbook and then write back the updates to the database.

Dave
 
Upvote 0
Hi,
If you are using your JobSheet workbook as a database which your users write to via a template workbook, the database workbook as you discovered, cannot be opened in read / write mode whilst users need to write to it.

Not fool proof but you can reduce conflicts by providing an edit function in the template workbooks where users can call back a record. You need to develop code that would briefly open the database workbook in readonly mode, find and return the required record. Users can then edit it in their workbook and then write back the updates to the database.

Dave

Hi Dave,

That may be an option yes.

Thanks,
 
Upvote 0

Forum statistics

Threads
1,214,574
Messages
6,120,329
Members
448,956
Latest member
Adamsxl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top