Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 17th, 2005, 06:51 AM
Registered User
 
Join Date: Jun 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do you copy data from a Flexgrid?

I using VB6 and display info in a Flexgrid. I want to select a few lines and then copy and paste the info into another app e.g. Word.

 
Old February 17th, 2005, 03:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

concatenate the text in the cells in a big string (use comma or tab to separate them) looping through the selected rows and all columns (or some columns) and put the string in the buffer using Clipboard.SetText
Marco
 
Old February 17th, 2005, 04:40 PM
Registered User
 
Join Date: Jun 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That sounds messy I was hoping there was just something I was missing in the properties to enable it. I know to edit it you can use a text box over the top.

 
Old February 17th, 2005, 05:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

messy? it is just less than ten lines of code... :)
Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save data from flexgrid to access naveed77 VB Databases Basics 0 December 26th, 2007 02:20 AM
Copy data to Excel gjackson Visual Basic 2005 Basics 1 July 1st, 2007 07:56 AM
Need help for export data from flexgrid to Excel [email protected] General .NET 1 January 16th, 2006 01:18 AM
Copy data to word rajanikrishna Classic ASP Databases 1 September 22nd, 2003 02:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.