Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi!

I have a form1 and when i press on button1 it opens an Excel sheet, copies the text in cell A1 and pastes it in A2.

 

I've tried this copy-paste code :

xlsheet.Range("A1").Copy()

xlsheet.Range("A2").Paste()

 

Of course it doesn't work and i get an error message : i think i have to select A2 before pasting in it, but i can't figure ou the code for it... :confused:

 

Can someone help me with the copy-paste syntax for Excel in VB.Net?

 

Thank you!!!

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...