Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Hello, I am trying to copy text information from one worksheet to
another. I open only the first sheet then I have a comand button by where I want to say transfer the values. La macro give an error at ObjWorshett.Cells(Riga, 1).text = oDO.GetText Errore di run-time '1004'. Errore definito dall'applicazione o dall'oggetto. Thanks in advance! Franco Dim oDO As New DataObject oDO.SetText [B2].Value oDO.PutInClipboard Dim ObjWorshett As Worksheet Dim strNomeFile As String strNomeFile = "\\srv01\Dp\ANTONELLA\sblocco.xls" Set ObjWorshett = Application.Workbooks.Open(strNomeFile, False, True).Sheets(1) UltimaRiga = ObjWorshett.Range("A65356").End(xlUp).Row Riga = UltimaRiga + 1 oDO.GetFromClipboard ObjWorshett.Cells(Riga, 1).text = oDO.GetText Set oDO = Nothing ObjWorshett.Application.ActiveWorkbook.Close |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy cell from one worksheet to another worksheet in exel | Excel Discussion (Misc queries) | |||
copy data in a cell from worksheet A to worksheet B | Excel Discussion (Misc queries) | |||
How do I copy a date in a worksheet cell to another worksheet? | Excel Worksheet Functions | |||
How do I copy a cell from one worksheet to another worksheet | Excel Discussion (Misc queries) | |||
how do I copy the worksheet tab name to a cell? | Excel Discussion (Misc queries) |