Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

paste info from clipboard into dbgrid

Posted on 1998-01-13
1
327 Views
Last Modified: 2008-02-01
Does anyone know how to paste info from clipboard to dbgrid say eg I have an excel sheet and I copy some info to
clipboard ... the columns will be space separated ...then I just paste it into a vb5 application dbgrid....

any comment, suggetions or sample code?...
0
Comment
Question by:zakman
1 Comment
 
LVL 5

Accepted Solution

by:
dirtdart earned 10 total points
ID: 1450877
Since the DBGrid doesn't have a paste method, you would need to copy the clipboard text to a string and insert it into the dbgrid cell by cell.

Dim st As String

st = Clipboard.GetText

DBGrid.Text = st

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to open Waze.com/livemap from address saved in DB? 26 209
VBA error replacing data 6 40
Access 2013 combo box not working 3 51
VB 6 error 5 in windows 10 but not in XP 7 63
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question