Adding hyperlink in Shared Workbook using VBA

144725

New Member
Joined
Feb 4, 2009
Messages
5
I am preparing a template workbook.
Whenever a new sheet is inserted in the workbook, my macro should

1) Copy first few rows from the Template sheet (its VeryHidden) and paste in the new sheet
2) Create Data Validation for few columns
3) Create a hyperlink for the new sheet in "Links" sheet

My code works fine when the workbook is not shared. However, if it is shared, it fails while creating hyperlink & Data Validation.

Is there any workaround for this? Or i have to bare with it?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
From Excel Help:

In a shared workbook, you cannot do the following:

<LI class=LB1>Set up or change data validation restrictions and messages. However, you can see the effects of restrictions and messages that were set up before you shared the workbook.
<LI class=LB1>Insert or change charts, pictures, objects, or hyperlinks.
 
Upvote 0

Forum statistics

Threads
1,214,790
Messages
6,121,607
Members
449,037
Latest member
Arbind kumar

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