PC Review


Reply
Thread Tools Rate Thread

cut and paste into cisco device (equivalent to pasting into notepa

 
 
DV
Guest
Posts: n/a
 
      29th Jan 2008
i have the following formula in one column (below is taken from one cell in
the column)
="int gig"&" "&G62&"/"&H62&CHAR(13)&(CHAR(10))&"description"&"
"&N62&"P"&O62&"P"&P62&" "&Q62&CHAR(13)&CHAR(10) and i use the following
macro to cut and paste this into a cisco device (or you can use notepad as an
example)
Sub TestMacro()
Dim objClip As DataObject
' Microsoft Forms 2.0 Object Library
' needs to be selected as a Reference (on the VBA Tools menu)
Dim strTmp As String
Set objClip = New DataObject
strTmp = ActiveCell.Value
objClip.SetText strTmp
objClip.PutInClipboard
Set objClip = Nothing
End Sub
Even though this currently works by pasting into the cisco device 2 seperate
lines without the quotes if I didnt use the macro--I have an issue where I
need to select multiple lines in the column--today it could be line 8,9,10
and tomorrow it could be 11,12 in the spreadsheet. is it possible to select
mulitple lines using this macro and also is it possible that when i open the
worksheet the macro automatically runs instead of having to run it for each
line?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
API equivalent of copy and paste peter@psyche.demon.co.uk Microsoft Outlook Discussion 0 17th Feb 2006 09:25 AM
Cisco device discovery with SNMP =?Utf-8?B?VGltIFRodWxpbg==?= Microsoft VB .NET 0 18th Jan 2006 10:57 PM
I'm copying and pasting Cisco port informaton: 2/11, 2/4, 3/10 =?Utf-8?B?YmlnbW8yOQ==?= Microsoft Excel New Users 3 17th Mar 2005 12:51 AM
Paste-Values Equivalent in Word? =?Utf-8?B?V3lubg==?= Microsoft Word Document Management 2 15th Mar 2005 04:43 PM
Configuring IPSec tunnel between W2K server & Cisco device - HOW??? Vsevolod Ukrainsky Microsoft Windows 2000 Security 1 3rd Dec 2003 05:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:11 AM.