Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default help with excel macro

hi,

i wanted help on writing this code that will reset the last row to
predefined value(the next row)...... like lets say the last cell i
the column A is A25, then the macro will copy the whole row 26 an
paste it to row 25....

i hope i am making sense....

thanks for any help possible!!

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default help with excel macro


Sub test()
With ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).EntireRow
.Copy .Offset(-1, 0)
End With
End Sub

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"paritoshmehta " wrote in
message ...
hi,

i wanted help on writing this code that will reset the last row to a
predefined value(the next row)...... like lets say the last cell in
the column A is A25, then the macro will copy the whole row 26 and
paste it to row 25....

i hope i am making sense....

thanks for any help possible!!!


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
passing variables from an excel macro to a powerpoint macro jake Excel Programming 1 December 11th 03 02:36 AM


All times are GMT +1. The time now is 05:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"