A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Absolute cell references



 
 
Thread Tools Display Modes
  #1  
Old April 20th, 2004, 03:48 PM
Alan
external usenet poster
 
Posts: n/a
Default Absolute cell references

This is a copy taken from Google

Try the sub by Gord Dibben below
(always try any macro on a back-up copy of your file first)

Paste the sub - i.e. everything within "begin vba" to "end vba"
into a general module

Select the cells you want changed, and then run the sub

------- begin vba ----
Sub Absolute()
'By Gord Dibben
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
---- end vba ----
--
Rgds
Max
xl 97

"ams228 " wrote in message
...
I need to convert serveral lines and columns of variable cell references
to absolute cell references without doing them one at a time. Does
anyone know a way to do it more quickly?


---
Message posted from http://www.ExcelForum.com/



  #2  
Old April 20th, 2004, 03:50 PM
Dave R.
external usenet poster
 
Posts: n/a
Default Absolute cell references

How easy depends on how many different cell references you have. If you're
lucky you can just use CTRL H (find/replace) A1 with $A$1 for example.



"ams228 " wrote in message
...
I need to convert serveral lines and columns of variable cell references
to absolute cell references without doing them one at a time. Does
anyone know a way to do it more quickly?


---
Message posted from http://www.ExcelForum.com/



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:30 AM.


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