Forum Discussion

Jeff43615's avatar
Jeff43615
Copper Contributor
Dec 06, 2022
Solved

Excel vba declared a variable using object

I stupidly decided to name a shape variable as so:   Dim shaPes as Shape   I have since removed the variable and all usage of it from the entire project. Even though I have, every time I want use...
  • Jeff43615's avatar
    Jeff43615
    Dec 12, 2022
    Thank you for your answer. Unfortunately, I was not able to resolve the error using this method. After digging much deeper in Stack Overflow I was able to find a solution.

    https://stackoverflow.com/questions/38640121/vba-object-properties-appear-in-lower-case

    Of course I will be avoiding this in the future by staying away from reserved words.

Resources