Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Petitboeuf Wrote: SamuelT, Many thanks! It worked a treat! :) Now for the next challenge! ![]() My formula is something like "=Sheet1!a9/Sheet1!a9" which will give me a % (100% in that case). I want to copy/paste down the formula and in order to do so would need the formula to be: "=Sheet1!a9/Sheet1!$a$9" What would be the tweak on the code to make this happen? I tried to play with it but my VB abilities do not allow for any results ;) Many thanks try this, it worked for me: Sub SetPartToAbsolute() Dim c As Range Dim arSplit As Variant Dim Numer, Denom As String For Each c In Selection If c.HasFormula Then arSplit = Split(c.Formula, "/") c.Formula = arSplit(0) & "/" & Application.ConvertFormula(arSplit(1), xlA1, xlA1, xlAbsolute) End If Next End Sub -- FrankB ------------------------------------------------------------------------ FrankB's Profile: http://www.excelforum.com/member.php...o&userid=18952 View this thread: http://www.excelforum.com/showthread...hreadid=562366 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pull data from another sheet based on certain criteria | Excel Discussion (Misc queries) | |||
Adding "fixed" data to variable length data | Excel Worksheet Functions | |||
ranking query | Excel Discussion (Misc queries) | |||
Automatically Adding Data to Charts | Charts and Charting in Excel | |||
Line Graph Data Recognition | Charts and Charting in Excel |