Calling macro right after importing DB from external DB into Excel -
i have access myexterntable.mde database connect when workbook opened. connection defined regular excel's data-> connections ui, , works well. connection string is:
provider=microsoft.ace.oledb.12.0; user id=admin; data source=d:\databases\uuuu\myexterntable.mde; mode=readwrite; extended properties=""; jet oledb:system database=""; jet oledb:registry path=""; jet oledb:engine type=5; jet oledb:database locking mode=1; jet oledb:global partial bulk ops=2; jet oledb:global bulk transactions=1; jet oledb:new database password=""; jet oledb:create system database=false; jet oledb:encrypt database=false; jet oledb:don't copy locale on compact=false; jet oledb:compact without replica repair=false; jet oledb:sfp=false; jet oledb:support complex data=false; jet oledb:bypass userinfo validation=false; jet oledb:limited db caching=false; jet oledb:bypass choicefield validation=false
the commadtext is:
qryidnameexport
my workbook contains vba sub
procedure called "sortidnames" call right after importing table, in order sort it.
is there way call without using workbook_open()
or workbook_activate
events? maybe through connection definition?
highly appreciate idea!
Comments
Post a Comment