put data into an external shared file

zeos

New Member
Joined
Mar 2, 2021
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
Hello ,

I need to put data into another shared xlsm file , here below a piece of the code where the macro asks to open the shared file only when it is closed by controlling its readonly status , but since it is a shared file his read only is always false , and it opens it again even when it is open

Ret = IsWorkBookOpen("C:\prove share\shared.xlsm")
If Ret = False Then
Set wb1 = Workbooks.Open("C:\prove share\shared.xlsm")
Else
Workbooks("shared.xlsm").Activate

may you please help me out avoiding the file from opening again and simply activate the already open one ?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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