Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2003
I have the spreadsheet that has 50 sheets. I now want to add a formula to the same cell in each sheet. The procedure I have is as follows but it doesn't work - it doesn't add the formula to the cell: Any ideas? Sub UpdateDesc() Dim wks As Worksheet On Error Resume Next For Each wks In ActiveWorkbook.Worksheets wks.Unprotect Rows("5:5").RowHeight = 18.75 Range("G5").Select ActiveCell.Formula = "=IF(VLOOKUP(B4,Contracts!$A$1:$E$168,5,FALSE)=0," ",VLOOKUP(B4,Contracts!$A$1:$E$168,5,FALSE))" wks.EnableSelection = xlUnlockedCells wks.Protect End If Next End Sub Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
update vlookup formula sheet reference for multiple sheets | Excel Worksheet Functions | |||
How to update data from multiple sheets to one specific sheets | Excel Discussion (Misc queries) | |||
Auto-update with multi-users | Excel Worksheet Functions | |||
Do..Loop in multi sheets | Excel Programming | |||
Sum Array Formula Across Multi Sheets | Excel Programming |