Run-time error 1004 - Unable to set the Border property of the Border Class

iQuikDraw

New Member
Joined
Jan 20, 2021
Messages
15
Office Version
  1. 2010
Platform
  1. Windows
I found what was wrong, but not before searching many forums with many varied solutions thrown around. i just wanted to post this as a "New coding person" note that sometimes it can be a simple syntax problem causing the error like I had, found and fixed:

.Weight = xlThin

I had manually changed a Border property to "xlMedium" from "xlThin" and after the error, thought I changed it back to "xlThin" still throwing the same error. What I didn't catch is I had typed the VBword with a "1" (One) in it. Once I figured out it is x-l - (LETTER "L") -Thin. That fixed it. Staring at it in a field of code, the "1" and lower case "l" look nearly identical.

SOLVED for me anyway. Hope this helps someone...
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,215,506
Messages
6,125,194
Members
449,214
Latest member
mr_ordinaryboy

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