Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to run a macro that will change any cell that links to a tab
called data! to an absolute reference. Below is the code that I have developed with help from others an articles so far, but I cannot figure out why this does not work. Can anyone out there please help me? Thanks, this is driving me crazy. Sub ConvertFormulae() For Each wb In Workbooks For Each sh In wb.Worksheets For Each Cell In sh.UsedRange If Cell Like "*data!*" Then Formula1 = Cell.Formula newformula = Application.ConvertFormula _ (Formula:=MyFormula1, _ fromReferenceStyle:=xlA1, _ toReferenceStyle:=xlA1, _ toAbsolute:=xlAbsolute) Cell = newformula End If Next Cell Next sh Next wb End Sub *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
code to check condition for each row | Excel Discussion (Misc queries) | |||
Please check my code!!!! | Excel Discussion (Misc queries) | |||
Code for many check boxes | Excel Programming | |||
Check Box Code | Excel Programming | |||
Check my code to use template? | Excel Programming |