Prinz Jaymes
Member
Hi
Having issues with VBA code.
I was initially helped with this project here on Chandoo. Initially, clicking on ovals allowed changes, but now when I completely try to reopen file and shutting down Excel, my code shows faulty messages.
It looks like this:
With ActiveSheet
objname = .Shapes(Application.Caller).Name
shpnum = Val(Replace(objname, "Oval ", ""))
If objname <> prevname Then
.Shapes(prevname).Fill.BackColor.RGB = DEFAULTCOLOR (main error) .Shapes(prevname).Fill.ForeColor.RGB = DEFAULTCOLOR
.Shapes(objname).Fill.BackColor.RGB = CLICKEDCOLOR
.Shapes(objname).Fill.ForeColor.RGB = CLICKEDCOLOR
Not sure what to do.
Having issues with VBA code.
I was initially helped with this project here on Chandoo. Initially, clicking on ovals allowed changes, but now when I completely try to reopen file and shutting down Excel, my code shows faulty messages.
It looks like this:
With ActiveSheet
objname = .Shapes(Application.Caller).Name
shpnum = Val(Replace(objname, "Oval ", ""))
If objname <> prevname Then
.Shapes(prevname).Fill.BackColor.RGB = DEFAULTCOLOR (main error) .Shapes(prevname).Fill.ForeColor.RGB = DEFAULTCOLOR
.Shapes(objname).Fill.BackColor.RGB = CLICKEDCOLOR
.Shapes(objname).Fill.ForeColor.RGB = CLICKEDCOLOR
Not sure what to do.