Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi. The code below scans an entire worksheet, and hardcodes and cell with a vlookup formula in it. How can I vary this to EXCLUDE cell C1, meaning leave the vlookup formula in cell C1? Thanks! Dim rCell As Range For Each rCell In ActiveSheet.UsedRange.Cells If UCase(Left(rCell.FormulaR1C1, 8)) = "=VLOOKUP" Then rCell.Value = rCell.Value Next rCell |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim rCell As Range
For Each rCell In ActiveSheet.UsedRange.Cells if rcell.address = "$C$1" then 'skip it else If UCase(Left(rCell.FormulaR1C1, 8)) = "=VLOOKUP" Then rCell.Value = rCell.Value end if end if Next rCell Steph wrote: Hi. The code below scans an entire worksheet, and hardcodes and cell with a vlookup formula in it. How can I vary this to EXCLUDE cell C1, meaning leave the vlookup formula in cell C1? Thanks! Dim rCell As Range For Each rCell In ActiveSheet.UsedRange.Cells If UCase(Left(rCell.FormulaR1C1, 8)) = "=VLOOKUP" Then rCell.Value = rCell.Value Next rCell -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Steph
one way: Dim rCell As Range For Each rCell In ActiveSheet.UsedRange.Cells If rCell.Address < "$C$1" Then If UCase(Left(rCell.FormulaR1C1, 8)) = "=VLOOKUP" Then rCell.Value = rCell.Value End If End If Next rCell Regards Trevor "Steph" wrote in message ... Hi. The code below scans an entire worksheet, and hardcodes and cell with a vlookup formula in it. How can I vary this to EXCLUDE cell C1, meaning leave the vlookup formula in cell C1? Thanks! Dim rCell As Range For Each rCell In ActiveSheet.UsedRange.Cells If UCase(Left(rCell.FormulaR1C1, 8)) = "=VLOOKUP" Then rCell.Value = rCell.Value Next rCell |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IN EXCEL............HOW DO YOU ELIMINATE A * NEXT TO A CELL VALUE | Excel Discussion (Misc queries) | |||
IN EXCEL............HOW DO YOU ELIMINATE A * NEXT TO A CELL VALUE | Excel Discussion (Misc queries) | |||
A way to eliminate repeated info within a cell | Excel Programming | |||
how can I eliminate the last character of a cell? | Excel Discussion (Misc queries) | |||
how can I eliminate the first 3 characters from a cell | Excel Worksheet Functions |