accept others changes in share workbook

RSnap3232

New Member
Joined
Nov 20, 2020
Messages
43
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
hello All,

I have a shared spreadsheet where it saves after the users edit certain columns (the first and last of the spreadsheet)

the idea is that when they enter the first it will save and of course if there is a conflict it means they do not have the latest version while the last column is to ensure they save their work.

My issue is I want to ensure when there is conflicting information that it always accepts the other user or the only option is to only accept the other users edit as it shows they are not working with the latest version.

Any help will be greatly appreciated.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Perhaps you could eliminate conflicts by saving when the first column is selected rather than when it is edited?
 
Upvote 0
Perhaps you could eliminate conflicts by saving when the first column is selected rather than when it is edited?
I am using the following VBA how would I change it to save when the cell is selected as that might be a good solution

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 9 Then ThisWorkbook.Save
If Target.Column = 1 Then ThisWorkbook.Save
End Sub
 
Upvote 0
You would need 2 procedures in the same module. This will save when column A is selected or column I is edited.

VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 9 Then ThisWorkbook.Save
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 1 Then ThisWorkbook.Save
End Sub
 
Upvote 0
Solution
You would need 2 procedures in the same module. This will save when column A is selected or column I is edited.

VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 9 Then ThisWorkbook.Save
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 1 Then ThisWorkbook.Save
End Sub
that is brilliant I think that is a way round what I needed thank you.
 
Upvote 0

Forum statistics

Threads
1,215,831
Messages
6,127,144
Members
449,363
Latest member
Yap999

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