DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Copying and Pasting Channels

Solved!
Go to solution

When copying and pasting channels is there a way to leave out the name of the channel?  Whenever I copy and paste a channel into excel the name of the channel is always pasted with the data in the channel.

 

I just want to copy the data of the channel and leave out the name.

0 Kudos
Message 1 of 4
(4,063 Views)

Hmm. can you specify what you're doing exactly that's leading to that? It's not a problem I'm encountering.

Product Support Engineer
National Instruments
0 Kudos
Message 2 of 4
(4,043 Views)
Solution
Accepted by aGrimm

Hello!

 

This code does the job:

 

Option Explicit

Dim s

Call ChnClpCopy("1-4")

s = TextFromClipBoard()
s = Mid(s, InStr(s, vbCRLF)+2)
TextToClipboard( s )

 

You might add some code to make it bullet proof 😉

 

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
Message 3 of 4
(4,027 Views)

Works like a charm.

 

Thanks again Matthias.

0 Kudos
Message 4 of 4
(4,003 Views)