Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Datagrid to Clipboard/Excel

Posted on 2002-04-24
Medium Priority
Last Modified: 2013-11-13
I'm working at a client site where the client is displayed a datagrid. The client wants to be able to select the grid and copy/paste the contents into Excel. When I did this, excel pasted the contents as a picture. Is there some way code-wise to do this? Thanks!
Question by:enoch100
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
  • 3
  • 2

Author Comment

ID: 6965794
To be more clear, I don't want Excel to paste it as a picture. I would like the cells and data to go into excel.... as cells and data.

Author Comment

ID: 6965805
To be more clear, I don't want Excel to paste it as a picture. I would like the cells and data to go into excel.... as cells and data.

Accepted Solution

GregJennings earned 600 total points
ID: 6965871
You could export the grid to a file and then load the file in Excel.

Author Comment

ID: 6965898
That's a good idea... I could go thru the cols and put them into a comma-delimited file which they can open up later... Thanks! Didn't even occur to me. <sigh> damn M$ and their clipboard! :)

Expert Comment

ID: 6965935
You might check to see if there's an export function built in to the control.  I once used a grid control that had an export function and all I had to do was call that function with the output filename and it created the file for me.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…
Suggested Courses

636 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