|
-
Excel Copy & Paste
Hello All,
I think this one should be easy, I just can't seem to get the right formula down. I have information that is laid out in rows on an excel spredsheet. When I get to a row that has a specific piece of information then I want to copy that whole row, and put it into a new sheet on the same Excel workbook. Below is the code that I am trying so far. Can someone let me know what is wrong. Thank you.
if usit1 = ("USIT") then
xls.sheets("usit_usdt").rows(count3).select
xls.sheets("usit_usdt").row(count3).copy
xls.sheets("sheet2").activesheet
xls.sheets("sheet2").range("A" & count4).currentregion
activesheet.paste
count4 = count4+1
count3 = count3+1
goto end_proce1
elseif usit1 <> ("USIT") then
count3 = count3+1
end if
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks