what im looking to do is have a code that runs and looks in row 1 of sheet1 and if a cell contains "Char" (and could also have something else like "Char3" or Char12") then it deletes that cell value thank you
what im looking to do is have a code that runs and looks in row 1 of sheet1 and if a cell contains "Char" (and could also have something else like "Char3" or Char12") then it deletes that cell value thank you
Perhaps something like this
Thanks![]()
Option Explicit Sub DeleteChar() Dim r As Range For Each r In ActiveSheet.UsedRange.Rows(1).Cells If r.Value Like "Char*" Then r.Value = vbNullString End If Next r End Sub
perfect! thank you
I am glad I was able to help![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks