Excel cell format change without conditional formatting

longnguyen

New Member
Joined
Oct 16, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,
I have an Excel file where cell colors change automatically as I type characters (numbers don't trigger this). This behavior is set up for the range Sheet1!A3:R3.
I've check conditional formatting, VBA/Macro code but they don't exist.
Since I couldn't attach the file directly, I've shared it on Google Drive, I also snapshot some photos for your reference.
Could you please take a look and explain how this is achieved? I'm new to this feature and would appreciate learning more about it.

Thank you very much!
Loading Google Sheets
 

Attachments

  • REFERENCE PHOTO.png
    REFERENCE PHOTO.png
    121.4 KB · Views: 14

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
This is a normal behavior, if you want to disable this please disable "Extend data range formats and formulas", look at the attached screenshot.

Regards,
GB
 

Attachments

  • aaa.png
    aaa.png
    23.9 KB · Views: 7
Upvote 0
Copy and paste this macro into the worksheet code module. Do the following: right click the tab name for your sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Enter a value in cell O3 and press the ENTER key.
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.CountLarge > 1 Then Exit Sub
    If Intersect(Target, Range("O3")) Is Nothing Then Exit Sub
    With Target
        .Font.Bold = True
        .HorizontalAlignment = xlCenter
        .VerticalAlignment = xlCenter
    End With
End Sub
 
Upvote 0
Copy and paste this macro into the worksheet code module. Do the following: right click the tab name for your sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Enter a value in cell O3 and press the ENTER key.
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.CountLarge > 1 Then Exit Sub
    If Intersect(Target, Range("O3")) Is Nothing Then Exit Sub
    With Target
        .Font.Bold = True
        .HorizontalAlignment = xlCenter
        .VerticalAlignment = xlCenter
    End With
End Sub
thank you bro but in my case, I cannot determine any VBA code, therefore, I refer to research how it is working.
 
Upvote 0
This is a normal behavior, if you want to disable this please disable "Extend data range formats and formulas", look at the attached screenshot.

Regards,
GB

mumps, thank you very much, I thought this some tricks but it is simplest way.

 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,568
Members
453,053
Latest member
Kiranm13

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