|
-
Jul 20th, 2010, 12:04 PM
#1
Thread Starter
Junior Member
[RESOLVED] closing an excel file from VB
I am extracting a column with 8760 cells from an excel file to my graph in my vb application. I managed to open and close the excell sheet from my program. However, when I try to run my application I receive this message:
There is a large amount of information on the clipboard do you want to be able to paste this into to another program later?
Is there a way that I can avoid receiving this message when calling the data from the excell file?
HOW??
-
Jul 20th, 2010, 12:20 PM
#2
Re: closing an excel file from VB
You could just try clearing the clip board.
VB.NET Code:
My.Computer.Clipboard.Clear()
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Jul 20th, 2010, 12:48 PM
#3
Thread Starter
Junior Member
Re: closing an excel file from VB
I tried but to paste the code in vb but nothing happened. I think I need to paste it the the excel macro that I am calling. do you know any solution?
-
Jul 20th, 2010, 01:32 PM
#4
Re: closing an excel file from VB
If the issue is that the clipboard is full, then clearing it will work. That means that you're not clearing in the right area.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Jul 20th, 2010, 02:06 PM
#5
Thread Starter
Junior Member
Re: closing an excel file from VB
Application.CutCopyMode = False
thank you
-
Jul 20th, 2010, 02:12 PM
#6
Hyperactive Member
Re: closing an excel file from VB
In your App, try assigning your working variables to Nothing as soon as your done with them.
Code:
xlSheet = Nothing
xlBook = Nothing
xlApp = Nothing
-
Jul 20th, 2010, 02:15 PM
#7
Re: closing an excel file from VB
 Originally Posted by shadyattia
Application.CutCopyMode = False
thank you
Eh... whatever works 
Please mark the thread resolved by selecting it from the Thread Tools menu located near the top of the page.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|