Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-20-2016, 06:08 PM
Xyz_999 Xyz_999 is offline Write a macro to change formulas Windows 10 Write a macro to change formulas Office 2016
Novice
Write a macro to change formulas
 
Join Date: Apr 2016
Posts: 4
Xyz_999 is on a distinguished road
Default Write a macro to change formulas

Write a macro to change formulas
I have an excel Sheet1 and has formulas in column A. Some of these formulas refer to Sheet2 such as +Sheet2!A1, +Sheet2!A100, +Sheet2!578, .... I would like to find all these references and remove from the formulas in Sheet1 so it never refers to Sheet2. How can I do this, this needs to be done in all the rows in Column A, if this needs to be done in a macro what type of macro that can achieve this?
Reply With Quote
  #2  
Old 04-20-2016, 09:51 PM
xor xor is offline Write a macro to change formulas Windows 10 Write a macro to change formulas Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

You don't need a macro for this.

Try the following:

Select the range with your formulas.
Press Find&Select on the ribbon.
Press Replace.
In Find what field enter =.
In Replace field enter x.
Press Replace All and press OK to All done.

Press Replace.
In Find what field enter Sheet2!.
Leave the Replace field blank.
Press Replace All and press OK to All done.

Press Replace.
In Find what field enter x.
In Replace field enter =.
Press Replace All and press OK to All done.
Press Close.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Write a macro to change formulas How to change this printing macro terrymac Excel Programming 1 12-01-2015 06:47 PM
Macro to change cell references SaneMan Excel Programming 6 10-01-2013 02:49 PM
write need help and copy write need help on another page auto wykoems Word 2 07-25-2013 07:56 AM
How do you write a macro with an IF Function Scheuerman1987 Excel 5 06-05-2013 06:04 AM
Write a macro to change formulas How to write a macro to find a specified name in a list of data? Jaffa Excel 1 10-23-2010 02:39 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft