![]() |
Find word and copy
Didn't save my macro list since the reset, so I have to rebuild it.
I want to find the word grand total and copy 8 columns across and 10 rows down Thanks, DJ |
Find word and copy
DJ
Here is somthing I came up with. Sub mysub() Dim firstrng Dim secondrng Cells.Find(What:="grand total", After:=ActiveCell, LookIn:=xlFormulas LookAt _ :=xlPart).Activate firstrng = (ActiveCell.Address) secondrng = (ActiveCell.Offset(10, 7).Address) Range(firstrng & ":" & secondrng).Copy End Sub HTH Charle -- Message posted from http://www.ExcelForum.com |
All times are GMT +1. The time now is 04:53 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com