VBA Track changes on shared workbook

Michiko

New Member
Joined
Oct 21, 2015
Messages
9
Hello Everyone,

I have a VBA that copies a given sheet from my workbook.xlsm to a new workbook.xlsx and saves it in a shared folder. It works just fine, but I want it to enable track changes on the new workbook.xlsx before closing it.

Since I'm not an expert on code, nor whatsoever!, I've just searched for the piece of code online. However, I've already tried a lot of combinations and none worked, I always get an error. Currently, I'm using this:

VBA Code:
With ActiveWorkbook
  .HighlightChangesOptions _
  When:=xlAllChanges, _
  Who:="Everyone"
  .ListChangesOnNewSheet = False
  .HighlightChangesOnScreen = True
End With

And getting this:

1629970390933.png


(Yes... The code gets highlighted... Just not the kind of highlight I want ?)

Can anyone help, please?

Thanks!
 
Weird that it doesn't work for you. Just created a net share in a virtual machine and it works as expected for me.
What happens if you just save the workbook first, and then save it again as a shared workbook, as in:
VBA Code:
     With wbNew
         .SaveAs FileName:=NEWFILE, FileFormat:=xlOpenXMLWorkbook

         .SaveAs FileName:=wbNew.FullName, FileFormat:=xlOpenXMLWorkbook, AccessMode:=xlShared
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I figured out what was happening: the worksheet had a table. A TABLE!

Converted to range... Boom!

It doesn't matter the specific code I use: all of them work.

Anyway: thank you very much for all your help!
 
Upvote 0
Solution
You are welcome!
I figured out what was happening: the worksheet had a table. A TABLE!
I really wouldn't have thought of that.
Great news, well done and thanks for letting us know, so that others can benefit from it.
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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