Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following code worked until I changed how I started it. It originally
started with button on a worksheet (not a control button). I changed it to a control button now it doesn't work. Everything else in the procedure works fine. The code is: Set ycell = Sheets("Estimates DB").Range("estdbno") Range(ycell.Offset(1, 0), ycell.Offset(estnum, 0)).Name = "estdbnorng" The error I get is: Method 'Range" of object '_Worksheet' failed. Everything is set right. ycell as range, the sheet name and cell name are correct. I was wondering if it could be because I changed it to a control button and moved the procedure from a module to to an excel object. Any help on this would be greatly appreciated. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how can i automatically generate work order numbers from work orde | Excel Discussion (Misc queries) | |||
flash object dont work in my excel work sheet | Excel Discussion (Misc queries) | |||
HOW TO MAKE A LIST OF WORK SHEET IN WORK BOOK IN EXCEL 2007 | Excel Programming | |||
If I have a work sheet protected and try to run a macro to hide rows or columns it won't work. Correct? | Excel Programming | |||
Counting dates in multiple work sheets and work books | Excel Discussion (Misc queries) |