I have a spreadsheet with two worksheets in it and one uses cell values from the other. 'Data Entry' is where the data is entered and 'Summary Final' is where the information ends up. I need to be able to change the reference in the 'Summary Final' sheet to Absolute ($). I know I can change one cell at a time by using F4 (I learned that here) but I need to be able to do a large number of cells at one time. I have 15,000 cells to do and doing it 1 cell at a time is not practical.
Thank you in advance for help, I hope I have used the correct terms for this problem as I am not well versed in Excel.
Last edited by Otto Heider; 11-04-2009 at 02:12 PM.
Post the workbook, or an example of the workbook which accurately portrays the formula and cell locations.
mew!
=IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)
Here is a spreadsheet with entries. Summary Final has 3 blocks of numbers, the first block does not have the reference to Data Entry as absolute, the other blocks do. I need to be able to change this.
Might take a look at this link and use the code there.
Convert Excel Formulas from Relative to Absolute
Palmetto
Do you know . . . ?
You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.
There is an error in that code and I am not able to trouble shoot it. This looks like it will do what I want if it will work. Thank you very much.
Try this:
Sub ChangeRefs() Dim vRef As Variant Dim cell As Range vRef = InputBox(Prompt:="Change formulas to?" & vbLf & vbLf & _ "1. Absolute all" & vbLf & _ "2. Absolute Row / Relative column" & vbLf & _ "3. Relative Row / Absolute column" & vbLf & _ "4. Relative all") If vRef = vbNullString Then Exit Sub If Not IsNumeric(vRef) Or vRef < 1 Or vRef > 4 Then MsgBox "Invalid selection" Exit Sub End If On Error Resume Next For Each cell In Intersect(Selection, ActiveSheet.UsedRange).SpecialCells(Type:=xlFormulas) cell.Formula = Application.ConvertFormula(cell.Formula, xlA1, xlA1, vRef) Next cell End Sub
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
Yippee! Thank you Thank you Thank you! Palmetto and Shg thank you for your help. I will mark this solved
Otto Heider
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks