Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2008

Tip: Looking for answers? Try searching our database.

paste values to last row

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
patojo - 31 Jan 2008 01:17 GMT
Does anyone have a VB script that will copy and paste values from one
row to the last row on a worksheet?
Dave Peterson - 31 Jan 2008 01:31 GMT
I used column A to find the last row of the worksheet and I pasted under that
last row.

Dim NextRow as long
dim RowToCopy as range

set rowtocopy = activecell.entirerow

with worksheets("somesheetnameHere")
  Nextrow = .cells(.rows.count,"A").end(xlup).row + 1
  rowtocopy.copy _
     destination:=.cells(nextrow,"A")
end with

> Does anyone have a VB script that will copy and paste values from one
> row to the last row on a worksheet?

Signature

Dave Peterson

Ron de Bruin - 31 Jan 2008 15:53 GMT
See also this page if it is possible that the cell in A is empty
http://www.rondebruin.nl/copy1.htm

Signature

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm

>I used column A to find the last row of the worksheet and I pasted under that
> last row.
[quoted text clipped - 12 lines]
>> Does anyone have a VB script that will copy and paste values from one
>> row to the last row on a worksheet?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.