ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Paste to variable number of rows (https://www.excelbanter.com/excel-programming/294194-re-paste-variable-number-rows.html)

brook6

Paste to variable number of rows
 
I finally got around to trying this and got a syntax error...any idea why?
Is 'TheSheet' the name of my worksheet? what does the underline do at end of first line of text?

thx

----- mudraker wrote: -----

GetBottomRow = TheSheet.Cells.Find(what:="*", SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious).Row

range("a1:A" & getbottomrow).select


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




All times are GMT +1. The time now is 05:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com