#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default MS Excel Macro issue

Hi everyone,
I am kind of new to using MSExcel and I am having a little trouble with
macros.I have to sum up few rows based on some conditions, so I used a SUMIFS
and then I have to count the rows based on some conditions again and so I
used a COUNTIFS. I recorded a macro while putting in these formulas.The
problem is, if I add more rows to the excel sheet and then run the macro, the
new rows will not be included in the computations performed by the macro. Is
there a way that this can be resolved?I've done some research on this and all
I found was that editing macros is not a good idea. Any inputs would help me
greatly. Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 105
Default MS Excel Macro issue

Hi.
For intance, you may want to use :
Range("A1", Range("A65536").End(xlUp))
to select the column A range from A1 to the last non blank cell.
Regards.
Daniel
Hi everyone,
I am kind of new to using MSExcel and I am having a little trouble with
macros.I have to sum up few rows based on some conditions, so I used a SUMIFS
and then I have to count the rows based on some conditions again and so I
used a COUNTIFS. I recorded a macro while putting in these formulas.The
problem is, if I add more rows to the excel sheet and then run the macro, the
new rows will not be included in the computations performed by the macro. Is
there a way that this can be resolved?I've done some research on this and all
I found was that editing macros is not a good idea. Any inputs would help me
greatly. Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default MS Excel Macro issue

I'm not sure who told you editing macros is not a good idea; often it is the
only way to achieve a 'robust' and adaptable solution.
Exercise caution, yes, fear to tread on new ground - no.

If you post your recorded macro, I'll bet we can get it to a 'robust and
adaptable' state.

"msofficehelp" wrote:

Hi everyone,
I am kind of new to using MSExcel and I am having a little trouble with
macros.I have to sum up few rows based on some conditions, so I used a SUMIFS
and then I have to count the rows based on some conditions again and so I
used a COUNTIFS. I recorded a macro while putting in these formulas.The
problem is, if I add more rows to the excel sheet and then run the macro, the
new rows will not be included in the computations performed by the macro. Is
there a way that this can be resolved?I've done some research on this and all
I found was that editing macros is not a good idea. Any inputs would help me
greatly. Thanks in advance.

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
Macro issue Sue Excel Discussion (Misc queries) 0 October 8th 08 08:05 PM
Macro Issue basanth New Users to Excel 3 September 10th 08 06:05 PM
Doing MS Training in Excel, having Macro Issue Judi Excel Discussion (Misc queries) 15 July 17th 08 12:07 AM
Excel Macro- sort issue in Excel2003 Radhakrishna k.v.n.r[_2_] Excel Worksheet Functions 1 October 26th 07 10:02 AM
Excel 2007 Macro/Link Issue (apologies for cross-posting) MorgSz Links and Linking in Excel 2 July 25th 07 08:12 PM


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