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: 11

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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: 6
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,223,101
Messages
6,170,116
Members
452,302
Latest member
TaMere

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