read row from excel

how can i (see code):

* output a certain total row on a certain sheet to textbox1
* past a certain total row on a certain sheet to another Excel object?
Dim newExcel As Excel.Application = New Excel.Application
Dim orgExcel As Excel.Application = New Excel.Application

Dim orgWorkBook = orgExcel.Workbooks.Open(sMyFile)
Dim orgWorkSheet = orgWorkBook.Worksheets(My.Settings.vWorkSheetOrg)
orgWorkSheet.Activate()

Open in new window

Ollie90Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

viralypatelCommented:
Sub PasteRowDelete()
' Macro recorded 10/29/2001 by Thomas Urtis
Application.ScreenUpdating = False
Worksheets("Illinois").Select
ActiveCell.EntireRow.Select
Selection.Cut
Sheets("Deleted Prospects").Select
Range("A65536").End(xlUp).Offset(1, 0).Select
ActiveSheet.Paste
Application.CutCopyMode = False
Sheets("Illinois").Select
Selection.Delete Shift:=xlUp
ActiveCell.Select
Application.ScreenUpdating = True
End Sub

Open in new window

0
viralypatelCommented:
0
Ollie90Author Commented:
i doesn't work:

error : Select method of Range class failed

Dim orgWorkBook = orgExcel.Workbooks.Open(sMyFile)
Dim orgWorkSheet = orgWorkBook.Worksheets(My.Settings.vWorkSheetOrg)
orgWorkSheet.Activate()
orgWorkSheet.Rows("3:3").Select()
0
Ollie90Author Commented:
is it possible that this gives an error because the sheet is hidden?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.