Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Page 1 of 2 1 2 >
Topic Options
#107826 - 28/07/2002 11:58 New utility> Catalogue creation macro for MS-Word
eslange
journeyman

Registered: 16/11/2001
Posts: 74
Loc: Utrecht, Netherlands
Ok folks...

Some of might remember that a couple of days back I was talking about 'how to make a nice hand-out of all music stored on the Empeg'. At the same time I was already playing around with VBA for MS-Office, and this weekend I've completed a macro for this. Its still very beta stuff, so keep me informed for bugs or extra features required.
Let me know how you think about this toy!

What is it
It's a MS-Word 6.0 (and up) document including a macro which uses the Empeg database file (in CSV-format) as input for generating a catalogue. This database file can be exported from Emplode or jEmpode (be sure selecting CSV-format).
On request the macro generates:
- Table of Contents
- Overview of albums with their title - artist
- Overview of artists with their songs

What does it need
- MS-Word 95/97 (6.0 and up)
- Excel (since its interfacing to Excel)
- A printer

How to use
Unzip the EmpegMusicCatalogue.zip and open the document inside Word. Next execute the macro by ALT+F8 and play the 'StartGeneratingCatalogue'-macro.

What do I want
Nothing
Just deliver me an e-mail if you like it with bug reports and recommendations.

Another request from me
Who can store this on www.riocar.org? I do not have a server to put my code there.


Attachments
106266-EmpegMusicCatalogue.zip (46 downloads)


Top
#107827 - 28/07/2002 12:41 Re: New utility> Catalogue creation macro for MS-Word [Re: eslange]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
Sorry, but the download does not work...Maybe your file is to big!

bye
_________________________
crazymelki.com

Top
#107828 - 29/07/2002 00:25 Re: New utility> attachment trouble... [Re: eslange]
eslange
journeyman

Registered: 16/11/2001
Posts: 74
Loc: Utrecht, Netherlands
Seems that the attachment gives problems.
The size seems be the problem (313kB, while 200k is max), so stay in touch while I'm trying to fix the problem.

Top
#107829 - 29/07/2002 00:57 Re: New try> attachment adapted. Should work now [Re: eslange]
eslange
journeyman

Registered: 16/11/2001
Posts: 74
Loc: Utrecht, Netherlands
MS-Word seems to make itself crazy regarding picture handling and blowed the filesize. I've deleted and re-inserted the pictures and the size of the ZIP has now shrunk from 313kB to 91kB.

Give it a try..


Attachments
106391-EmpegMusicCatalogue.zip (59 downloads)


Top
#107830 - 29/07/2002 01:26 Re: New utility> Catalogue creation macro for MS-Word [Re: crazymelki]
eslange
journeyman

Registered: 16/11/2001
Posts: 74
Loc: Utrecht, Netherlands
It was indeed the size.
Have fixed it now by new attachement in a reply

Top
#107831 - 29/07/2002 02:20 Re: New utility> Catalogue creation macro for MS-Word [Re: eslange]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
I keep getting this error "The macros in this project are disabled. Please refer to the online help or documentation of the host appliucations to determine how to enable macros" any ideas?
_________________________
---- Justin Larsen

Top
#107832 - 29/07/2002 02:22 Re: New utility> Catalogue creation macro for MS-Word [Re: justinlarsen]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
nevermind figured it out, you must have excel running int he background
_________________________
---- Justin Larsen

Top
#107833 - 29/07/2002 02:43 Re: New utility> Catalogue creation macro for MS-Word [Re: justinlarsen]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
new situation, im getting an "Run-time erroe '1004;: Methond 'Range' of object '_Global' failed" any ideas?
_________________________
---- Justin Larsen

Top
#107834 - 29/07/2002 02:48 Re: New utility> Catalogue creation macro for MS-Word [Re: justinlarsen]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Ditto.



Tom


Attachments
106407-catalogerror.gif (188 downloads)


Top
#107835 - 29/07/2002 03:06 Re: New utility> Catalogue creation macro for MS-Word [Re: charcoalgray99]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
ya kinda of a bummmer, hopefully u can get it fixed soon it looks really great from what i see, i could u a nice soild catalog thats for the effort you are making
_________________________
---- Justin Larsen

Top
#107836 - 29/07/2002 03:30 Re: New utility> Catalogue creation macro for MS-Word [Re: justinlarsen]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Should we take up a collection for poor college student Justin, who apparently cannot afford the shift-key and punctuation upgrades for his keyboard?
_________________________
Bitt Faulk

Top
#107837 - 29/07/2002 03:53 Re: New utility> Catalogue creation macro for MS-Word [Re: justinlarsen]
eslange
journeyman

Registered: 16/11/2001
Posts: 74
Loc: Utrecht, Netherlands
Oh man...
I simply hate that VBA-stuff. They call it sometimes the programming language for dummies, but I prefer bare C/C++ programming.

About the problems you ran into:
I've executed this macro at my home place (Office97) and work (Office 97 + 2000), both running without problems. The excel problem sounds strange to me because windows should automatically shoots the excel object.

The other one (runtime error) seems to be related to the excel.

Question
What office package you are using

Give me a moment to investigate it. Unfortunately this will be this afternoon since I've a couple of customers looking over my shoulders at work.

Thanks anyway,

EiSl

Top
#107838 - 29/07/2002 10:12 Re: New utility> Catalogue creation macro for MS-Word [Re: wfaulk]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
Bitt, please take note of the time i wrote that post. Its clear that it was very early in the morning/late in the evening, and i was still a little bit drunk. Give me a break.
_________________________
---- Justin Larsen

Top
#107839 - 29/07/2002 10:14 Re: New utility> Catalogue creation macro for MS-Word [Re: eslange]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
Im running The Office Xp Suite, that might have something to do with it. I updated all my VB Runtimes as well still no dice.
_________________________
---- Justin Larsen

Top
#107840 - 29/07/2002 16:05 Re: New utility> Catalogue creation macro for MS-Word [Re: eslange]
AndrewT
old hand

Registered: 16/02/2002
Posts: 867
Loc: Oxford, UK
It only runs for me only with Excel closed prior to running (WinXP & Office XP). I've noticed that at times, Excel does not show on the taskbar but is present in task manager (not your problem but may explain why others are having problems and getting the 1004 error).

However, something isn't working properly for me......

The "Albums" page empty and on the "Artists" page I just get a single column of numbers (one per line, aligned to LH margin) which in fact are the track lengths (they also appear in column D "length" in Excel).

Top
#107841 - 30/07/2002 04:10 Re: New utility> Do not downl until further notice [Re: eslange]
eslange
journeyman

Registered: 16/11/2001
Posts: 74
Loc: Utrecht, Netherlands
Hello all,

Seems that different people all have the same problem. I will suggest not download this until further notice.
I the meantime I will dive into the trouble.
To give you all an impression what this macro actually produces I've attached an example.

Sorry for this inconvenience, for me its of course a bad start...

You will hear soon something...

EiSl


Attachments
106657-EmpegDbExample.zip (103 downloads)


Top
#107842 - 30/07/2002 07:57 Re: New utility> Do not downl until further notice [Re: eslange]
f_devocht
member

Registered: 28/12/2001
Posts: 159
Loc: Belgium
Hope you get it fixed soon. I tried it (didn't work for me either on W2K), but the result looks promising!

Frank

Top
#107843 - 30/07/2002 10:43 Re: New utility> Do not downl until further notice [Re: eslange]
Neutrino
addict

Registered: 23/01/2002
Posts: 506
Loc: The Great Pacific NorthWest
I think any start is infinitely better than not trying at all. I'm impressed by what you've done so far. It's more than I could do.
_________________________
No matter where you might be, there you are.

Top
#107844 - 30/07/2002 11:19 Re: New version (1.02 beta2) [Re: eslange]
eslange
journeyman

Registered: 16/11/2001
Posts: 74
Loc: Utrecht, Netherlands
Hello folks,

I've made some modifications. The range errors was because of different layouts of (j)Emplode CSV-files. I didn't checked that (ough) but I thought it was the same. Well... Emplode exports 30 columns, jEmplode only 17. So a small redesign is made.
I've also made a option making the interfacing to Excel visible. You can checkmark this. As a last test I've build myself a new catalogue using the CSV-files of both (j)Emplode -> works fine (for me )

OK lets try this one. Keep me in touch for other errors. If you get an error, then also try the other CSV-file. At the end I can provide someone the password to unprotect the macro so debugging is easier.

Cheers,

EiSl



Attachments
106754-EmpegMusicCatalogue.zip (68 downloads)


Top
#107845 - 30/07/2002 11:37 Re: New version (1.02 beta2) [Re: eslange]
Waterman981
old hand

Registered: 14/02/2002
Posts: 804
Loc: Salt Lake City, UT
I havent been able to get past the "Macros in this project are disabled..." error... I have excel open, i've tried with both files in excel, and excel closed. OfficeXP

edit: ok, I needed to reopen your file, but upon doing so, I still get a "could not load object because it is not available on this machine", VB?? Then I hit run, and get the error again, then when I get the screen to load my database, I get the visual basic error: "Compile error in hidden module: IntroDlg"


Edited by waterman981 (30/07/2002 11:45)
_________________________
-Michael

#040103696 on a shelf
Mk2a - 90 GB - Red - Illuminated buttons

Top
#107846 - 30/07/2002 11:44 Re: New version (1.02 beta2) [Re: Waterman981]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
same message here...I am using also Office XP!
_________________________
crazymelki.com

Top
#107847 - 30/07/2002 11:54 Re: New version (1.02 beta2) [Re: eslange]
Micman2b
addict

Registered: 27/12/2001
Posts: 441
Loc: Central, NC, USA
I have Office 2000 and I am getting the following attached error.

"System Error &H8000FFFF (- 2147418113).Catastrophic failure "

Where does the CVS file need to reside for the macro to find it?


This sounds like it is a great thing. I cannot wait use it.



Attachments
106769-error.gif (200 downloads)

_________________________
_____________
Sean in NC
130gb MK2a w/ 32mb ram
80gb MK2a empeg spare

Top
#107848 - 30/07/2002 12:32 Re: New version (1.02 beta2) [Re: Micman2b]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
looks like i got it working, its seems to be im getting the results now THANKS!
_________________________
---- Justin Larsen

Top
#107849 - 30/07/2002 12:38 Re: New version (1.02 beta2) [Re: justinlarsen]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
ok i got most of the way thru then i got a Run-Time Error '13' type mismatch. This ended on page 73, also no table of contents, and the 2 col check mark is greyed out on XP, im just gunna get a version of office 97 to run it, and stop complaing but i do love this it super cool. at least we are getting somewhere
_________________________
---- Justin Larsen

Top
#107850 - 30/07/2002 12:40 Re: New version (1.02 beta2) [Re: justinlarsen]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
also i can go ahead and host it for you on riocar.org
_________________________
---- Justin Larsen

Top
#107851 - 30/07/2002 13:02 Re: New version (1.02 beta2) [Re: crazymelki]
Neutrino
addict

Registered: 23/01/2002
Posts: 506
Loc: The Great Pacific NorthWest
I don't think this is an error. Go to Tools click on macro, than security. Lower your security option to allow this macro to run.
_________________________
No matter where you might be, there you are.

Top
#107852 - 30/07/2002 13:22 Re: New version (1.02 beta2) [Re: Neutrino]
Neutrino
addict

Registered: 23/01/2002
Posts: 506
Loc: The Great Pacific NorthWest
It works for me. Thank You! Is it possible to sort Artist - Album - Title? Do you expect to add the Pin Number? Even if you do nothing else its very nice. Thank You for your hard work.
_________________________
No matter where you might be, there you are.

Top
#107853 - 30/07/2002 14:16 Re: New version (1.02 beta2) [Re: Neutrino]
jbauer
veteran

Registered: 08/05/2000
Posts: 1429
Loc: San Francisco, CA
So did anyone figure out how to get by the "Could not load an object because it is not available on this machine." error in XP?

- Jon

Top
#107854 - 30/07/2002 15:57 Re: New utility> Do not downl until further notice [Re: eslange]
AndrewT
old hand

Registered: 16/02/2002
Posts: 867
Loc: Oxford, UK
That works MUCH better

It does however throw up a type mismatch (error 13) when it encounters a missing Artist name (column M in Excel).
Excel represents this missing field as a #NAME? - I think a fairly simple "on error do <something> resume next" in VBA would probably fix this adequately.


Top
#107855 - 30/07/2002 18:25 Re: New version (1.02 beta2) [Re: Neutrino]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
yeep, now it works! Thanks for your help!
_________________________
crazymelki.com

Top
Page 1 of 2 1 2 >