Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have numerous sheets in a workbook, and have sometimes a numerical value in Cell J59.
I have some code that does some other work for me, but now i need to add a piece of VBA that will look through ALL sheets int he workbook to see IF Listbox4.value is in Cell J59. If it is then Delete the value, if not found then do nothing. I am trying this to no avail: =========================== Dim wks As Worksheet For Each wks In ThisWorkbook.Worksheets On Error Resume Next If wks.Range("J59").Value = ListBox4.Value Then wks.Range("J59").Value = "" End If Next wks =========================== ctm.... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find Duplicates Across Two Sheets, Delete Everything else. | Excel Worksheet Functions | |||
Delete value if found in cell. | Excel Programming | |||
Delete a cell when found | Excel Programming | |||
Find text in another workbook and paste if found match - VBA | Excel Discussion (Misc queries) | |||
How to delete values of a cell if it is found in another coloumn | Excel Worksheet Functions |