•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 427,314 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,846 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 3169 | Replies: 2
![]() |
•
•
Join Date: Mar 2007
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
any idea how to copy row and column data from msflexgrid to excel, I have tried looping from the selected rows and columns of msflexgrid using "VbTab" and "vbCrLf" and clipboard.setText, "vbCrLf" seems to work in separating the data into rows but data to column seems to have some problem
i have also tried using msflegrid.clip but i'm still coming up with similar results.. data to row is ok, but data to column is not
my Code:
Dim tmpCnt As String
Clipboard.Clear
tmpCnt = "a" & vbTab & "b" & vbCrLf & _
"c" & vbTab & "d" & vbCrLf & _
"1" & vbTab & "2"
Call Clipboard.SetText(tmpCnt)
thanks
any idea how to copy row and column data from msflexgrid to excel, I have tried looping from the selected rows and columns of msflexgrid using "VbTab" and "vbCrLf" and clipboard.setText, "vbCrLf" seems to work in separating the data into rows but data to column seems to have some problem
i have also tried using msflegrid.clip but i'm still coming up with similar results.. data to row is ok, but data to column is not
my Code:
Dim tmpCnt As String
Clipboard.Clear
tmpCnt = "a" & vbTab & "b" & vbCrLf & _
"c" & vbTab & "d" & vbCrLf & _
"1" & vbTab & "2"
Call Clipboard.SetText(tmpCnt)
thanks
•
•
Join Date: Mar 2007
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I found out that there is nothing wrong with the code, I tried "paste" to text document and notice that the "Tab" was still present
when I checked the sheet where I want to paste the clipboard the delimiter filter was set to comma, so I assume that this is the reason why my TAB was not working... I change the "VbTab" to Chr(44) then it works
but still I need other confirmation about this or better solution
thanks
I found out that there is nothing wrong with the code, I tried "paste" to text document and notice that the "Tab" was still present
when I checked the sheet where I want to paste the clipboard the delimiter filter was set to comma, so I assume that this is the reason why my TAB was not working... I change the "VbTab" to Chr(44) then it works
but still I need other confirmation about this or better solution
thanks
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Get data out of excel file stored as an image (MS SQL)
- sending data to and receiving data from excel (VB.NET)
- Export data to Excel Template (MS Access and FileMaker Pro)
- Transferring data to Excel (ASP.NET)
- Error message while importing data to Excel from the MySQL db (MySQL)
- Exporting data into Excel (C)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: help me plz
- Next Thread: open a PDF file in visual basic



Linear Mode