![]() |
|
#4
|
||||
|
||||
|
Hi carrolld2,
The simplest approach is to press Ctrl-End, which takes you to the last active cell, then delete all unused columns and rows and re-save the workbook. Do this correctly, and pressing Ctrl-End will take you to the last used cell. The macro should then 'work as advertised'. If that doesn't suit your needs, you could change: LRow = .Cells.SpecialCells(xlCellTypeLastCell).Row LCol = .Cells.SpecialCells(xlCellTypeLastCell).Column - 1 to: StrData = InputBox("Please input the last cell address") LRow = .Range(StrData).Row LCol = .Range(StrData).Column - 1
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| beginner, formula |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I refer to page numbers, when the numbers change as I prepare the document? | StevenD | Word | 5 | 11-29-2012 12:52 AM |
Page Numbers Not Matching Chapter Numbers
|
gracie5290 | Word | 1 | 02-02-2012 11:41 PM |
Find & Replace formula for numbers?
|
Griff | Word | 4 | 04-18-2011 02:47 AM |
| Find and replace page numbers in body of text | tollanarama | Word | 3 | 02-13-2011 06:00 AM |
| FInd recurring words in Word 2003 | NJ007 | Word | 4 | 01-25-2010 03:11 PM |