thatoneguy102
New Member
- Joined
- Mar 23, 2016
- Messages
- 4
Hello everyone, this is my first post!
I am trying to make some code to copy a module from my add-in, to the active workbook's ThisWorkbook module. I can't seem to figure out how to access it though. Here's the code I'm using:
<code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit;">Dim FName As String
With ThisWorkbook
FName = .Path & "\code.txt"
.VBProject.VBComponents("TestExport").Export FName
End With
ActiveWorkbook.VBProject.VBComponents.Import FName</code>
I am trying to make some code to copy a module from my add-in, to the active workbook's ThisWorkbook module. I can't seem to figure out how to access it though. Here's the code I'm using:
<code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit;">Dim FName As String
With ThisWorkbook
FName = .Path & "\code.txt"
.VBProject.VBComponents("TestExport").Export FName
End With
ActiveWorkbook.VBProject.VBComponents.Import FName</code>