Solved

paste info from clipboard into dbgrid

Posted on 1998-01-13
1
333 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
[X]
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
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
Spell Check in VB6 13 136
VB6 ListBox Question 4 55
VBA - Excel, Hide/unhide range of rows on sheet with listbox selection 9 97
MS SQL Update query with connected table data 3 59
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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 …
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

735 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