Thread
:
Setting Names from a workbook to a value in a Macro
View Single Post
#
2
Posted to microsoft.public.excel.programming
Ardus Petus
external usenet poster
Posts: 718
Setting Names from a workbook to a value in a Macro
Range("boolPaintCells").Value=False
HTH
--
AP
a écrit dans le message de news:
...
I have a workbook with a name "boolPaintCells", which is a boolean and
refers to a cell in sheet 1. I want to have my macro change
boolPaintCells value to FALSE (and thus the cell to false?), so I put
in:
Workbook.Names("boolPaintCells").Value = False
It returns a run time error which, when debugged, stops at the above
line of code. Any suggestions about what I am doing wrong?
Reply With Quote
Ardus Petus
View Public Profile
Find all posts by Ardus Petus