Advertisement

Chemstation: Add menu using USER.MAC?

Discussions about chromatography data systems, LIMS, controllers, computer issues and related topics.

5 posts Page 1 of 1
I've created some macros to do some custom excel reporting in Chemstation for GC analysis. I got them to work but now I want to add a menu item in the Data Analysis view under Report directly at the startup of both the on-line and off-line versions. When use the MenuAdd command I can create the menu I need but when I add it the the USER.MAC macro that runs at the startup, it won't create the menu, any suggestions how to do it, here's my user.mac:

macro GCIdle.mac
macro LPGxport.Mac
Switchview DA
menuadd "&Report", "Print LPG Report","macro lpgmenu.mac"

After startup I can use the macro's and commands I created in the GCIdle & LPGXport macro's, so the user.mac is executed but it won't create the menu.
When I call the user.mac from the command line, the menu is created allright but I want it to do that automatically at startup, what am I missing??
Which rev of Chemstation are you using?
Mark Krause
Laboratory Director
Krause Analytical
Austin, TX USA
B 04.01
Try this:

Create a new macro, called e.g. 'Addmenu.mac'. placed into the CORE directory.

Content of Addmenu macro:

Name Addmenu

menuadd "&Report", "Print LPG Report","macro lpgmenu.mac"
endmacro

SetHook "PreViewMenu","AddMenu"


Add to the USER.MAC instead Your last line:

macro _Autopath$ + "Addmenu.mac"

I hope this helps.

BWA
Did this suggestion work?
5 posts Page 1 of 1

Who is online

In total there are 25 users online :: 0 registered, 0 hidden and 25 guests (based on users active over the past 5 minutes)
Most users ever online was 4374 on Fri Oct 03, 2025 12:41 am

Users browsing this forum: No registered users and 25 guests

Latest Blog Posts from Separation Science

Separation Science offers free learning from the experts covering methods, applications, webinars, eSeminars, videos, tutorials for users of liquid chromatography, gas chromatography, mass spectrometry, sample preparation and related analytical techniques.

Subscribe to our eNewsletter with daily, weekly or monthly updates: Food & Beverage, Environmental, (Bio)Pharmaceutical, Bioclinical, Liquid Chromatography, Gas Chromatography and Mass Spectrometry.

Liquid Chromatography

Gas Chromatography

Mass Spectrometry