Ok, here's what I want to do: I'm trying to copy all the VBA code from "Sheet2" to the "Sheet 3" panel. I do NOT mean copying a module from one to another, but the code of the excel sheet object.
I already added a link to MS VB for application extensibility 5.3
I’m not sure where to start, but this is where I started, and it will not go anywhere and, probably, it’s not so. Please help - just want to programmatically copy the vba code to another vba sheet.
Dim CodeCopy As VBIDE.CodePane
Set CodeCopy = ActiveWorkbook.VBProject.VBComponents("Sheet2").VBE
ActiveWorkbook.VBProject.VBComponenets("Sheet3").CodeModule = CodeCopy
source
share