Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default change the reference type of multiple formulas

Can I change the cell reference type (absolute, relative etc.) for multiple
cells without manually adjusting each cell?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default change the reference type of multiple formulas

By macro. Choose which type from the 4 below.

Sub Absolute_Both()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula _
(cell.Formula, xlA1, xlA1, xlAbsolute)
End If
Next
End Sub

Sub AbsoluteRow()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula _
(cell.Formula, xlA1, xlA1, xlAbsRowRelColumn)
Next
End Sub

Sub AbsoluteCol()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula _
(cell.Formula, xlA1, xlA1, xlRelRowAbsColumn)
Next
End Sub

Sub Relative()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula _
(cell.Formula, xlA1, xlA1, xlRelative)
Next
End Sub



Gord Dibben MS Excel MVP

On Wed, 19 Mar 2008 09:15:01 -0700, Derfel
wrote:

Can I change the cell reference type (absolute, relative etc.) for multiple
cells without manually adjusting each cell?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional change of column reference in formulas excel help acct[_2_] Excel Discussion (Misc queries) 1 January 12th 08 01:39 AM
Update reference in multiple formulas Luke Excel Worksheet Functions 3 July 8th 07 10:04 AM
How to change cell reference within formulas CGSoniat Excel Worksheet Functions 4 October 31st 06 02:36 AM
transferring formulas with absolute reference to multiple tabs talderman Excel Discussion (Misc queries) 3 April 8th 06 07:26 AM
how to change all the words of one type(Gunsuh type)to another metumevlut Excel Discussion (Misc queries) 2 November 11th 05 03:29 PM


All times are GMT +1. The time now is 08:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"