Pattern Not Applying to Cells

szymagic

Board Regular
Joined
Jul 8, 2016
Messages
61
Hey All,

So a friend of mine has a workbook that is acting up.

When he selects a range to fill the cells he has to click twice. The first time he clicks nothing happens, and the second time he clicks the pattern is applied.

I thought this was curious so I recorded a macro when he did this and this is what we got:

Code:
    Range("A82:G82").Select
    With Selection.Interior
        .Pattern = xlNone
        .TintAndShade = 0
        .PatternTintAndShade = 0
    End With
    With Selection.Interior
        .Pattern = xlSolid
        .PatternColorIndex = xlAutomatic
        .Color = [COLOR=blue]5296274[/COLOR]
        .TintAndShade = 0
        .PatternTintAndShade = 0

For some reason the first time he clicks the fill button, excel recognizes it as .Pattern = xlNone

I think that is super weird. He is working in Office 365 32 bit. Any ideas on what is happening?

I checked conditional formatting and protections and there was nothing there for either. This is also an xlsx.


Thanks so much!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
The first time he clicks nothing happens

Clicks what ??
Is this part of a larger code ??


Code:
With Range("A82:G82").Interior
    .Pattern = xlSolid
    .PatternColorIndex = xlAutomatic
    .Color = 5296274
    .TintAndShade = 0
    .PatternTintAndShade = 0
End With
 
Upvote 0
Like when you click the fill cell "bucket" he has to click twice. The code was just to see what was actually happening per click.

The code doesn't do anything, and this really isn't a VBA related question, I'm just using VBA to tell a piece of the story!

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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