select channels from opened image
Hi,
I recorded a macro to change display settings of a multichannel ( oib confocal) image. The variable definition in the code looks like that (includes the name of the file and the dye color).
Dim var1 = "Tumor_1_10_CHS1__Hoechst_4e91a61", image1
How can I select the channels in a more generic way from the open doc to define the variable.
Thank you
0
Answers
It's hard to tell from your code snippet but it looks like this name would only be used to control the activation of one document or another, which can certainly be done more generically but we would need the rest of the recording to be able to help.
Pierre
Here is the code as you can see it defines the variable based on the file and dye name. So if I load another image it does not work.
So I need the command to say var1 is doc1, channel 1