|
Marc Santhoff wrote: Sorry, I don't know why I changed the message thread on this...Am Dienstag, den 03.01.2006, 17:53 -0500 schrieb Andrew Jensen:I'm curious, how did you register the connection? Did you use the dialog and assigned the macro or did you do it out of a program?If maually: there is a difference bewteen having the event connected on document or application level... I manually register from Tools>Customize and it is set on application level. This is on 2.0.1 by the way. I will give this a try and let you know..That looks like a bug in OO.o 1.0.x where macros called from the commandline when starting the office where invoked twice. Should be fixed somewhere in the step to 1.1, but using a global boolean outside any sub did fix it for me. global hasrun as boolean sub importCSVfromCommandline(file as string) dim typ as string typ = left(FileNameoutofPath(file),2) msgbox file + " : " + typ importCSV(file, typ) end sub sub importCSV(file as string, typ as string) if hasrun = FALSE then hasrun =TRUE else exit sub end if ... This way it *did* work. I am sure, I was sending out a print statement for testing..and it does just that..I have the feeling you hit the fix with the example above. Yes, it all helps. Thanks again. |
- Re: [api-dev] GlobalEventBroadcaster and StarBasic - continu... Andrew Jensen
- Re: [api-dev] GlobalEventBroadcaster and StarBasic - co... Andrew Jensen
- Re: [api-dev] GlobalEventBroadcaster and StarBasic - co... Mathias Bauer
- Re: [api-dev] GlobalEventBroadcaster and StarBasic ... Andrew Jensen
