LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Write variables from a loop, once only

Hi,
I'm working with WinXP Pro and Excel 2003.
In brief.
I have Column A2:A22 with cabinet codes and Column B2:B22 with component
codes relating to the cabinet code. ie cabinet code is L5, component code is
6E. (This is calculated with some other code.)
Many cabinet codes will have component code 6E. Other cabinets will have
different component codes.
What I require is to loop through the Col B, find what the component code is
and write it to Col A40 using .End(xlUp), if there are multiples tho I need
to only write it once, this is where the brain is stumped. I just can't
figure out how to tell Excel to only write a component code once and then
carry on writing the other codes.

Is it possible?

Regards

Richard


 
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
Setting Multiple Variables with a loop jlclyde Excel Discussion (Misc queries) 6 November 11th 09 09:40 PM
One solution solved one more to go€¦ Loop & Cell variables? CRayF Excel Programming 4 September 19th 05 05:51 PM
How to write a vba loop for Excel Paul Excel Programming 1 June 4th 05 06:24 AM
Excel VBA - changing variables during a loop ellis_x[_3_] Excel Programming 3 July 5th 04 08:44 AM
Loop,Compare,Write Michael168[_75_] Excel Programming 1 May 25th 04 06:41 PM


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