d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Excel/vba Prob: 2000fg!
Add Reply New Topic New Poll
Member
Posts: 2,377
Joined: Mar 22 2013
Gold: Locked
Jul 8 2014 01:13am
Hey, need help to solve that problem:

Quote
I put all the macros of my workbook inside an add-in, which is loaded inside of Excel.

But now I additionally have Worksheet_Change codes & Workbook_Open & Workbook_Close codes, which I want to put from the workbook inside the add-in. (Reason: save workbook as .xls!)

1) How can I add those into the add-in? (all macros are inside Module1 in the add-in, I don't seem to find how to add a Sheet into VB(Microsoft Excel Objects) (it would be Sheet5 with the name "Tool"), I can only choose between Sheet1,2,3

2) I only want that those worksheet_change & workbook_open/close codes are active when a very specific file is opened. Maybe there is a function. If Filename="Exceltool23.xls" then continue, otherwise don't execute workbook_open/close/worksheet_change events from add-in

Reason: If I open another workbook there will be errors when executing workbook_open/worksheet_change things.


2000fg if you can make it work!

/ waiting for funny comments also ofc.
Member
Posts: 2,840
Joined: Dec 21 2011
Gold: 0.00
Jul 8 2014 01:15am
ld? nld?
hc cl nld asia ?

This post was edited by brutalny0 on Jul 8 2014 01:15am
Member
Posts: 15,577
Joined: Dec 11 2009
Gold: 4,013.00
Jul 8 2014 01:27am
I will check this later maybe I can help you
Member
Posts: 2,377
Joined: Mar 22 2013
Gold: Locked
Jul 8 2014 02:49am
Quote (BonGi @ Jul 8 2014 08:27am)
I will check this later maybe I can help you


thanks :) would be so glad for help
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll