Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Effective method to compare worksheets?


Hi,

I've two worksheets for current month and previous month. I'd like to
compare this two sheets and highlight the different. The key to compare
is Product No in column A.

I could do this using loop to check row by row in the previous month
sheet. And using vlookup to check if the Product No exist in current
month sheet. I wonder if there is more effective method to accomplished
this task. I think the looping row by row is quite slow. And in some
occasion, the Product No was blank that make my vlookup not working
properly (I think).

Your help are appreciated.


--
hideki
------------------------------------------------------------------------
hideki's Profile: http://www.excelforum.com/member.php...o&userid=18903
View this thread: http://www.excelforum.com/showthread...hreadid=468402

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Effective method to compare worksheets?

Have you tried the loop yet? Often things that I think will execute
slowly actually end up being quite fast.

----

Nick hebb
BreezeTree Software
http://www.breezetree.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Effective method to compare worksheets?


Thank you Nick for your respond. Yes I'd tried the loops thing, and jus
like what you said, it ran quite fast. At least, not annoying me at all
But I just wonder if my rows become bigger in number, can it still giv
the same result?

I'm a beginner in Excel programming and still learning what is th
right and good programming style. If there is no other effectiv
method, I'll stick to the row by row looping in my VBA programming

--
hidek
-----------------------------------------------------------------------
hideki's Profile: http://www.excelforum.com/member.php...fo&userid=1890
View this thread: http://www.excelforum.com/showthread.php?threadid=46840

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
Effective method to paste array formula kuansheng Excel Worksheet Functions 2 February 2nd 06 12:47 AM
Effective Method to Detemine the Beginning and End of An Array? silver23 Excel Programming 3 April 27th 05 04:03 PM
Method failed when creating new worksheets kdev[_3_] Excel Programming 5 November 22nd 04 05:00 PM
Union Method with multiple worksheets Jeff B[_2_] Excel Programming 3 September 29th 04 05:04 PM
Worksheets.Add method Bruce Lindsay Excel Programming 10 October 29th 03 01:30 AM


All times are GMT +1. The time now is 11:00 AM.

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"