Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Multiple reference locking/unlockng in formulas

Hi All,
I have several columns where i need to unlock or lock the references inside
formulas in each cell (removing "$"s from references). How do I perform a
massive action? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Multiple reference locking/unlockng in formulas

Hi,

Select these columns then

Edit|Replace

In the 'Find what' box enter $

leave the other box empty and click 'Replace all'

For Excel 2007 the dialog is found in the 'Editing' group of the Home tab.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Gladiator" wrote:

Hi All,
I have several columns where i need to unlock or lock the references inside
formulas in each cell (removing "$"s from references). How do I perform a
massive action? Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Multiple reference locking/unlockng in formulas

Mike thanks, but how do I do massive reference lock?

"Mike H" wrote:

Hi,

Select these columns then

Edit|Replace

In the 'Find what' box enter $

leave the other box empty and click 'Replace all'

For Excel 2007 the dialog is found in the 'Editing' group of the Home tab.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Gladiator" wrote:

Hi All,
I have several columns where i need to unlock or lock the references inside
formulas in each cell (removing "$"s from references). How do I perform a
massive action? Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Multiple reference locking/unlockng in formulas

Hi,

Try this macro. To install it ALT+F11 to open VB editor. Right click
'ThisWorkbook' and insert module and paste the code in. Select your data and
run the code, you will be prompted whether you want relative or absolute

Sub ChangeRef()
response = InputBox("Enter 1 for relative or 2 for absolute")
Select Case response
Case Is = 1
RefType = xlRelative
Case Is = 2
RefType = xlAbsolute
Case Else
Exit Sub
End Select
For Each c In Selection
If c.HasFormula = True Then
c.Formula = Application.ConvertFormula(c.Formula, _
xlA1, xlA1, RefType)
End If
Next c

End Sub
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Gladiator" wrote:

Mike thanks, but how do I do massive reference lock?

"Mike H" wrote:

Hi,

Select these columns then

Edit|Replace

In the 'Find what' box enter $

leave the other box empty and click 'Replace all'

For Excel 2007 the dialog is found in the 'Editing' group of the Home tab.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Gladiator" wrote:

Hi All,
I have several columns where i need to unlock or lock the references inside
formulas in each cell (removing "$"s from references). How do I perform a
massive action? Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Multiple reference locking/unlockng in formulas

Thanks Mike. It worked just fine.

"Mike H" wrote:

Hi,

Try this macro. To install it ALT+F11 to open VB editor. Right click
'ThisWorkbook' and insert module and paste the code in. Select your data and
run the code, you will be prompted whether you want relative or absolute

Sub ChangeRef()
response = InputBox("Enter 1 for relative or 2 for absolute")
Select Case response
Case Is = 1
RefType = xlRelative
Case Is = 2
RefType = xlAbsolute
Case Else
Exit Sub
End Select
For Each c In Selection
If c.HasFormula = True Then
c.Formula = Application.ConvertFormula(c.Formula, _
xlA1, xlA1, RefType)
End If
Next c

End Sub
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Gladiator" wrote:

Mike thanks, but how do I do massive reference lock?

"Mike H" wrote:

Hi,

Select these columns then

Edit|Replace

In the 'Find what' box enter $

leave the other box empty and click 'Replace all'

For Excel 2007 the dialog is found in the 'Editing' group of the Home tab.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Gladiator" wrote:

Hi All,
I have several columns where i need to unlock or lock the references inside
formulas in each cell (removing "$"s from references). How do I perform a
massive action? Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Multiple reference locking/unlockng in formulas

Glad I could help and thanks for the feedback
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Gladiator" wrote:

Thanks Mike. It worked just fine.

"Mike H" wrote:

Hi,

Try this macro. To install it ALT+F11 to open VB editor. Right click
'ThisWorkbook' and insert module and paste the code in. Select your data and
run the code, you will be prompted whether you want relative or absolute

Sub ChangeRef()
response = InputBox("Enter 1 for relative or 2 for absolute")
Select Case response
Case Is = 1
RefType = xlRelative
Case Is = 2
RefType = xlAbsolute
Case Else
Exit Sub
End Select
For Each c In Selection
If c.HasFormula = True Then
c.Formula = Application.ConvertFormula(c.Formula, _
xlA1, xlA1, RefType)
End If
Next c

End Sub
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Gladiator" wrote:

Mike thanks, but how do I do massive reference lock?

"Mike H" wrote:

Hi,

Select these columns then

Edit|Replace

In the 'Find what' box enter $

leave the other box empty and click 'Replace all'

For Excel 2007 the dialog is found in the 'Editing' group of the Home tab.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Gladiator" wrote:

Hi All,
I have several columns where i need to unlock or lock the references inside
formulas in each cell (removing "$"s from references). How do I perform a
massive action? Thanks.

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
What do I use to reference the same cell in multiple formulas Tammy Excel Discussion (Misc queries) 2 August 29th 08 10:10 PM
change the reference type of multiple formulas Derfel Excel Discussion (Misc queries) 1 March 19th 08 05:05 PM
change the reference type of multiple formulas Derfel Excel Discussion (Misc queries) 0 March 19th 08 04:32 PM
Update reference in multiple formulas Luke Excel Worksheet Functions 3 July 8th 07 10:04 AM
formulas - multiple reference sheets jws217[_2_] Excel Programming 2 July 22nd 04 08:14 PM


All times are GMT +1. The time now is 09:48 PM.

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

About Us

"It's about Microsoft Excel"