SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jun 2008
    Location
    Abu Dhabi, UAE
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Hot to do Ctrl+C from datatable

    Hi,

    I am trying to copy the data from the datatable cell during the script run time. I am suposed to do it by keyboard.
    I am using the below function for copy "Ctrl + C" that works fine. I want to know how I can copy the value from any cell in the data table at runtime.

    Function PressCtrlPlusKey(strkey)
    Set drob = CreateObject ("Mercury.DeviceReplay")
    Set WshShell = CreateObject ("WScript.Shell")
    Const VK_CONTROL = 29
    Const VK_A = 30
    Const VK_N = 13
    Const VK_TAB = 15
    drob.KeyDown VK_CONTROL
    drob.SendString strkey
    drob.KeyUp VK_CONTROL
    wait 1
    Set drob = nothing
    End Function

    Adeel

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Hot to do Ctrl+C from datatable

    Why do you want to use copy paste when you can directly access these values through code?

  3. #3
    Advanced Member
    Join Date
    May 2006
    Location
    United Kingdom
    Posts
    742
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hot to do Ctrl+C from datatable

    I don't understand the real need though you can use this code along with Excel Object model and explore range in that. But I still doubt that why you don't just access each cell directly.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 7.69%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:50 PM.

Copyright BetaSoft Inc.