Cell String Value Not Changing

Ark68

Well-known Member
Joined
Mar 23, 2004
Messages
4,564
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Rich (BB code):
       With ws_cd1
            cnt_date = Application.WorksheetFunction.CountIf(.Columns(1), n_date)
            cnt_rows = Application.WorksheetFunction.Count(.Columns(1))
            rte = cnt_rows - cnt_date
            .Unprotect
            .Range("AP3").Value = "CORE DATA   " & Chr(208)
            .Range("AP3").Characters(Len(.Range("AP3").Value), 1).Font.Name = "Webdings"
            .Range("A1").AutoFilter Field:=1, Criteria1:="<>n_date"
            test = Application.WorksheetFunction.Subtotal(2, .columns(1)))
        End With

The code in blue is supposed to replace the existing value in cell AP3 (="CORE DATA " & chr(207)) with the value of ("CORE DATA " & chr(208))
The special characters are converted to symbols with the Webding change of the last character in the string.

Webdings chr(207) is a closed lock. This code should replace that value with Webdings chr(208) being an open lock.

For some reason, the string value in cell AP3 is not changing as expected. The lock (chr(207)) remain.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
the two blue lines run fine for me. What happens if you step through them and watch the cell?
 
Upvote 0
Thanks teylyn for reaching out to help. It's appreciated.
I realized I was referring to the wrong worksheet. Duh.
 
Upvote 0
time for the weekend to roll up ....
 
Upvote 0

Forum statistics

Threads
1,215,358
Messages
6,124,487
Members
449,165
Latest member
ChipDude83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top