Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Simple question, complicated answer. Why when I run this code from an
add-in does it not clear anything and error on the last line with "Subscript out of Range"? It's vague I know but it doesn't make any sense to me. The code works completely fine when ran separately from the macros which are part of my addin. Dim sh As Worksheet wks = ActiveSheet.Name For Each sh In ThisWorkbook.Sheets sh.Activate If Not sh.Name = "Formulas" Then Range(Rows(1), Rows(65536)).Clear ActiveSheet.DrawingObjects.Delete End If Next Sheets("Formulas").Activate |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula references two embedded excel objects in Word doc | Excel Worksheet Functions | |||
Word with embedded Excel object which has reference to addin | Excel Discussion (Misc queries) | |||
Unshimmed Automation Addin and Shimmed COM Addin in same App Domai | Excel Programming | |||
Displaying cell references next to embedded cells in Word 2000 | New Users to Excel | |||
Area references highliting from addin | Excel Programming |