Delete fill active range

rspalding

Active Member
Joined
Sep 4, 2009
Messages
295
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm trying to add the following code But it errors out. I want it to select whatever is selected. It will always start at B8 to S8 and down from there.

ActiveSheet.SelectRange.Select
Selection.Interior.Color = xlNone


Thanks,

Robert
 
What exactly is "SelectRange"?
Is it some range you have defined somewhere?
How have you defined it?
 
Upvote 0
The active range is the range that is already selected on the worksheet.
 
Upvote 0
If the range you want to apply it to is already selected, then get rid of that first line of code. Not only is it incorrect, it is also unnecessary.
 
Upvote 0
Solution
Perfect.

Thank you!
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0
You are welcome. Glad I was able to help!
 
Upvote 0

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