Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

remove external link calculation

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Remove external link in the calculations when pasting sheet from

Remove external link in the calculations when pasting sheet from

ResolvedVersion 2016

Yilin has attended:
Excel VBA Introduction course

Remove external link in the calculations when pasting sheet from

I am using VBA to paste the whole sheet from one workbook to another. There are external links directed to the source workbook in formulas like Address() and Sumif(). I want to remove these external links when I paste in.

RE: Remove external link in the calculations when pasting sheet

Hi Yilin,

Thank you for the forum question and thank you for the nice feedback.

I have created to workbooks; One where I am using the combination Address + Index function similar to your workbook and a destination workbook.

With only the destination workbook open I started the macro recorder. I recorded that I opened the source workbook copied the functions and some additional columns and pasted the data in the destination workbook.

I ran the macro and everything went fine. I didn't get the unwanted references.

Yesterday I believed that the Address function was the problem, but it is not.

I will need to have a closer look at your file to find out the problem.

You can send it to:

info@stl-training.co.uk



Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

RE: Remove external link in the calculations when pasting sheet

Hi Jens,

Thank you for looking at it. I am not able to send them over as they are from client. I managed to solve this problem by changing the link into current workbook with VBA.

RE: Remove external link in the calculations when pasting sheet

Hi Yilin,

I am happy that you found a solution.


Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Wed 16 Aug 2017: Automatically marked as resolved.

Excel tip:

Use RANDBETWEEN to generate random numbers

There may be occassions where you need to generate random numbers in your spreadsheet. Use the RANDBETWEEN function to generate random numbers between two values that you specify.

The function looks like this:

=randbetween(LOW,HIGH)

where LOW is the lowest number you want generated; and HIGH is the highest number you want generated.

This formula will work with both positive and negative LOWs and HIGHs. Also it will only generate integer numbers unless forced to do otherwise by the following:

=randbetween(LOW*10^PRECISION,
HIGH*10^PRECISION)/(10^PRECISION).

where PRECISION represents the levels of decimal precision needed (i.e. if you need numbers with one decimal place, PRECISION would be 1; 2 for two decimal places and so on).

One final note, if the RANDBETWEEN formula does not work in your spreadsheet or returns a "#NAME" error, you need to install the Analysis Toolpak Add-In. You will need to press F2 then Enter following the installation.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.