Solved

paste info from clipboard into dbgrid

Posted on 1998-01-13
1
341 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

724 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