Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8720

How to copy a complementary text of the the Task List?

$
0
0

Hi!

 

 

    I work with the PM module...

    Using VBA, I want to copy a text of a Task List and put it in the excel.

    But, I don't want that texts of the operations lines.

    I want the complementary texts that are inside the operations...

    Please look in the attached.

 

 

    I can only get to grey square, using the code below. But I can't copy that text inside the grey square...

 

 

********************************************************************************************

Sub macro1()

 

Dim Application

 

If Not IsObject(Application) Then

  Set SapGuiAuto = GetObject("SAPGUI")

  Set Application = SapGuiAuto.GetScriptingEngine

End If

If Not IsObject(Connection) Then

  Set Connection = Application.Children(0)

End If

If Not IsObject(session) Then

  Set session = Connection.Children(0)

End If

If IsObject(WScript) Then

  WScript.ConnectObject session, "on"

  WScript.ConnectObject Application, "on"

End If

session.findById("wnd[0]").maximize

session.findById("wnd[0]/usr/tblSAPLCPDITCTRL_3400").Columns.elementAt(6).Width = 2

session.findById("wnd[0]/usr/tblSAPLCPDITCTRL_3400/chkRC270-TXTKZ[6,0]").SetFocus

session.findById("wnd[0]").sendVKey 2

session.findById("wnd[0]").maximize

 

End Sub

********************************************************************************************

 

    I hope I have been clear in my explanations.

 

Thank you in advance !!


Viewing all articles
Browse latest Browse all 8720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>