Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
sht and wrkbook proc copy
Dim comS As VBIDE.VBComponent, comD As VBIDE.VBComponent, wbS, wbD, codM
As CodeModule, srshtS, srshtD Dim comsS As VBIDE.VBComponents, comsD As VBIDE.VBComponents Set comsS = ThisWorkbook.VBProject.VBComponents Set comsD = Workbooks("ha.xls").VBProject.VBComponents For Each comS In comsS If comS.Type = vbext_ct_Document Then Set codM = comS.CodeModule srcodS = codM.Lines(1, codM.CountOfLines) For Each comD In comsD If comD.Type = vbext_ct_Document Then srshtS = comS.Properties("name") srshtD = comD.Properties("name") If srshtS = srshtD Or codM = "ThisWorkbook" Then comD.CodeModule.AddFromString srcodS 'error line Exit For 'error line End If End If Next End If Next I want to copy sheets and thisworkbook procedures between projects....... but,,, error ..... ooooooooooh error occur, and the excel application is killed *** Sent via Developersdex http://www.developersdex.com *** |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
sht and wrkbook proc copy
hey, barb! I know the site already...... I did many method for acomplishment the object... But, I failed.... the stadard module, class module, form module is succed.. but the sht, and thisworkbook module.... is difficult... I want to get help from anyone. *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Determine whether a wrkbook have been changed since the last save | Excel Programming | |||
Read Only Wrkbook Sheet | Excel Programming | |||
Open wrkBook (auto_open) programmatically | Excel Programming | |||
linked wrkbook | Excel Programming | |||
retrieve data from from a variable wrkbook | Excel Programming |