Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 17th, 2005, 08:59 PM
Authorized User
 
Join Date: Jun 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Formulas Change When Macro Runs

I have formula below:

=SUMPRODUCT(--(ControlDetail!A2:A63518=A9)*AND(COUNTIF(ControlDe tail!B:B,"*")))

The A63518 range reduces every time I run the code It started out at A65000. The code deletes Duplicate rows in the ControlDetails sheet the the formula reads.
Can anyone help?

 
Old June 18th, 2005, 11:59 AM
Authorized User
 
Join Date: Jun 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tryed adding $
=SUMPRODUCT(--(ControlDetail!A$2:A$63518=A9)*AND(COUNTIF(Control Detail!B:B,"*")))


 
Old June 20th, 2005, 05:09 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can I recommend you consider reading the following webpage on microsoft MSDN site. It concerns the use of Arrays and entire columns. You may want to change your approach completely.

http://support.microsoft.com/default...b;en-us;166342

Cheers

Matt






Similar Threads
Thread Thread Starter Forum Replies Last Post
Formulas Juan0214 Access 4 July 2nd, 2008 02:04 PM
Need help with time formulas pfreire727 Excel VBA 1 February 12th, 2006 07:41 PM
stop macro from running on EVERY cell change!! forkliftpete Beginning VB 6 1 October 26th, 2005 07:36 AM
Inputbox and Formulas bahachin Excel VBA 3 February 17th, 2005 01:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.