Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DV DV is offline
external usenet poster
 
Posts: 5
Default cut and paste into cisco device (equivalent to pasting into notepa

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there an equivalent of Lotus 123's "Paste visible" command? AJ Excel Discussion (Misc queries) 6 March 16th 06 09:21 AM
I'm copying and pasting Cisco port informaton: 2/11, 2/4, 3/10 bigmo29 New Users to Excel 3 March 17th 05 12:51 AM
paste as device indep. bmp in powerpoint xalbador Excel Programming 0 September 27th 04 10:31 AM


All times are GMT +1. The time now is 09:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"