Solved

VB AddIns File Name

Posted on 2016-09-21
13
28 Views
Last Modified: 2016-10-02
How I find filename of  VBInstance.ActiveCodePane.CodeModule ?
0
Comment
Question by:mancio
  • 7
  • 6
13 Comments
 
LVL 45

Expert Comment

by:aikimark
ID: 41810492
Not sure what you mean.  Please explain in more detail.
0
 
LVL 1

Author Comment

by:mancio
ID: 41810563
I'm developing an Add-Ins, but I do not know the name of the file (.bas, frm ...) containing the active schedule (ActiveCodePane),  only found the project file name
0
 
LVL 45

Expert Comment

by:aikimark
ID: 41810663
add-ins for what Office product?

What is active schedule?
0
 
LVL 1

Author Comment

by:mancio
ID: 41811066
to VB6
0
 
LVL 45

Expert Comment

by:aikimark
ID: 41811115
to VB6
VB6 is not an Office product
0
 
LVL 1

Author Comment

by:mancio
ID: 41811192
I chose visual basic classic not Office
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 45

Expert Comment

by:aikimark
ID: 41811792
Are you trying writing an Excel add-in using VB6?
0
 
LVL 1

Author Comment

by:mancio
ID: 41812370
No, I am writing a vb6 Add-In
0
 
LVL 45

Expert Comment

by:aikimark
ID: 41812385
Dev studio?
0
 
LVL 45

Expert Comment

by:aikimark
ID: 41812399
It's been a long time since I've seen anyone do something like this.  Start with these articles.
https://support.microsoft.com/en-us/kb/189468
http://www.developer.com/net/vb/article.php/1538841/Creating-a-Visual-Basic-6-Add-In.htm
http://www.freevbcode.com/ShowCode.asp?ID=3302

Best advice: use the add-in wizard.
0
 
LVL 1

Accepted Solution

by:
mancio earned 0 total points
ID: 41812498
Tanks , but this is as initial Add-Ins documentation , not reference to file name of code windows.  I find name in VBInstance,SelectedVBComponent.FileNames(1), but I dont know if this is correct ever.
0
 
LVL 45

Expert Comment

by:aikimark
ID: 41813791
well...you could create a very simple add-in and then see what files are created.
0
 
LVL 1

Author Closing Comment

by:mancio
ID: 41825230
I find this soluction. but I don't know if is correct always
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
message box in access 4 41
How to set the sa password in a vb6 code for sql connection 9 37
Added a column screws up code 5 49
Problem to With line 4 41
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now