Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
GetFormula function- Need help showing formulas only-
I am trying to show the formulas of one range of cell in another range
of cells. I want range (I4:I15) to show the formulas in range(F4:F15). Below is the formula I am using but I am new to visual basic and I cant get this formula to work. Can anyone help? Range("F4:F15").Select Selection.Copy Range("I4").Select ActiveSheet.Paste Application.CutCopyMode = False Function GetFormula(I4) As String GetFormula = cell.Formula End Function Any comment is greatly appreciated. Thanks. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
GetFormula function- Need help showing formulas only-
Change the UDF:
Function GetFormula(cell as range) As String GetFormula = cell.Formula End Function Then put this in F4: =getformula(i4) and drag down. wrote: I am trying to show the formulas of one range of cell in another range of cells. I want range (I4:I15) to show the formulas in range(F4:F15). Below is the formula I am using but I am new to visual basic and I cant get this formula to work. Can anyone help? Range("F4:F15").Select Selection.Copy Range("I4").Select ActiveSheet.Paste Application.CutCopyMode = False Function GetFormula(I4) As String GetFormula = cell.Formula End Function Any comment is greatly appreciated. Thanks. -- Dave Peterson |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
GetFormula function- Need help showing formulas only-
Thank you- that was easier than I thought
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Changing worksheet cells from within a function | Setting up and Configuration of Excel | |||
need help with function and formulas | Excel Worksheet Functions | |||
Date & Time | New Users to Excel | |||
Conversion | Excel Worksheet Functions | |||
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. | Excel Worksheet Functions |