Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I receive the following error message when closing an Excel file when one of
its unhidden worksheets is active, but not the other: Run-time error '1004' Select method of Range class failed Debug points to code in a Private Sub (not in the Module) relating to one of several combo boxes in the first worksheet, as follows: Private Sub ComboBox2_Change() Sheets("Cover").Range("C13").Select End Sub The LinkedCell for each combo box is a cell in the same worksheet, which in turn feeds into a formula in the second worksheet (and I think this is where Excel seems to be getting confused). The ListFillRange for the combo boxes is located in a hidden worksheet. If the Active Sheet is the forst worksheet, however, the file can be saved / closed without any errors, so I tried this code: Sub Workbook_BeforeClose() Sheets("Cover").Activate Range("A1").Select But this did not work. -- R Ormerod |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error: "Excel encountered an error and had to remove some formatti | Excel Discussion (Misc queries) | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) | |||
Downloading Templates for Excel error with a windows error. | Excel Discussion (Misc queries) |