LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default Macros in Excel 2003

I want to create a macro to perform the same task but I need it to
accommodate changes in data from spreadsheet to spreadsheet. For example,
say I have a spreadsheet that has data in the first 20 rows of column A. I
make a macro to find the first empty cell in column A which, in this case, is
A21 and then highlight all the rows above it. So rows 1 through 20 will be
highlighted. But let's say the next spreadsheet I run the macro in has data
in the first 50 rows of column A. Because I made the macro in the first
sheet the macro will find the first empty cell at A51 (which is right) but
then it highlights rows 1-20 just like in the first one. Surely, there's a
way to make a macro virtual, no? So no matter how many rows have data the
macro will find the first empty cell, whatever that is, and then highlight
all the rows above that. How can this be done?


 
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
How do I get 2003 Macros and Toolbar Buttons form Excel 2003 to 20 Scott Sornberger New Users to Excel 2 March 19th 08 11:42 AM
need help macros excel 2003 kathepoo Excel Programming 1 June 22nd 07 11:28 AM
Macros Excel 2003 Tanya Excel Programming 1 September 20th 06 07:22 PM
Excel 2003 and Macros Kevin Murphy Excel Discussion (Misc queries) 0 June 21st 06 09:16 PM
Excel 2003 macros pspeed Excel Discussion (Misc queries) 4 December 15th 05 12:54 AM


All times are GMT +1. The time now is 04:48 PM.

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

About Us

"It's about Microsoft Excel"