Setting Names from a workbook to a value in a Macro

A

Abraham.Olson

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top