Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2004

Tip: Looking for answers? Try searching our database.

Auto adjusting # rows between 2 worksheets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kevin mckellar - 30 Dec 2004 14:38 GMT
I have a spreadsheet where I import daily data into
worksheet A.  Sometimes there will be 5 rows of data and
sometimes 1000+.  Then inside the spreadsheet I have
Worksheet B that runs some formulas based on Worksheet A.

My question is how do I get Worksheet B to automatically
extend or reduce the # of rows to match Worksheet A?  

Please help or give me some direction!  thanks
galimi - 30 Dec 2004 15:01 GMT
Kevin,

You can have Spreadsheet B adjust the number of formula's programattically
by cycling through the maximum used range in Spreadsheet A and inspecting
individual cells for formula's.

The following property will return the total number of rows in Spreadsheet A

sheet1.UsedRange.Rows.Count

You can then cycle through each of the cells in that range to determine if
there is data in those cells.

http://ForPicks.com

> I have a spreadsheet where I import daily data into
> worksheet A.  Sometimes there will be 5 rows of data and
[quoted text clipped - 5 lines]
>
> Please help or give me some direction!  thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.