Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Fixing Rows...Help please..

Hi There!

I have a report that sum up all values from all sheets within a
workbook, the formula is like these ='Sheet1:Shee2'!A9, i copied it
up to column Z to summarize all the values.

My question, can I create a macro that can check if all my data's from
all sheets starts in row9 excluding the column heading which starts in
row8?


Thanks in Advance! Have a nice day!


Jerome
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Fixing Rows...Help please..

Low tech solution: in an empty cell, multipy the value of A9 on each sheet.
If any are blank, Excel will treat it as a zero and the formula result will
be zero. If one of those cells contains text, it will return #VALUE.

However, that will only work if your list never starts with a value of zero;
if zero is a valid entry, you will need a more complex formula, or of
course, VBA. I'm not sure what your tests are, so I left that to you below.

Aircode:

Dim Sht as Sheet
For Each Sht in ActiveWorkbook
TempValue = Sht.Range("A9").value
**test for non-numeric values**
Next

Of course, this is focused on ensuring that your data starts /by/ row 9. If
you are worried that your data might start /earlier/ than row 9 (report
header issues, etc.) then I'd also test A8 in the same loop to make sure it
was what you expect (text header, or blank)

HTH,
Keith

"jhong" wrote in message
...
Hi There!

I have a report that sum up all values from all sheets within a
workbook, the formula is like these ='Sheet1:Shee2'!A9, i copied it
up to column Z to summarize all the values.

My question, can I create a macro that can check if all my data's from
all sheets starts in row9 excluding the column heading which starts in
row8?


Thanks in Advance! Have a nice day!


Jerome



Reply
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
Fixing a link hakan Excel Discussion (Misc queries) 1 April 28th 08 03:16 PM
Fixing the size of a row cferon Charts and Charting in Excel 1 July 11th 07 05:54 PM
Fixing the number of Coloms and rows. Hunter Excel Discussion (Misc queries) 2 January 7th 07 09:56 AM
Fixing the number of Col and rows. Hunter Excel Worksheet Functions 1 January 7th 07 08:52 AM


All times are GMT +1. The time now is 11:53 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"