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: 74
Default Exchanging an Excel formula with some VB code

I have a formual I'm using right now that I would like to replace with some
code. Here is the formula:

=IF(D2=D1,"",IF(ISERROR(VLOOKUP($D2,'XXX
DeleteCodes'!$1:$65536,2,FALSE)),"",VLOOKUP($D2,'X XX
DeleteCodes'!$1:$65536,2,FALSE)))

I repeat that formula about 1500 times to account for most circumstances but
on occasion I need more than 1500 lines so I'd like to move this formula to
VBA code.

The deletecodes sheet contains the following data type:

X561999 DDI DDU LNI LNU OPI DDQ

If the X561999 ID is found on the current sheet then the codes to the right
of the ID is copied into the cell that contains the above formula.

Any suggestions?
 
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
Exchanging information BBS0 Excel Worksheet Functions 2 December 2nd 08 03:38 AM
exchanging rows nada Excel Worksheet Functions 1 February 27th 08 01:53 PM
Exchanging text between two cells cherij Excel Programming 4 March 23rd 06 07:00 PM
exchanging X and Y in a plot Bruce Bowler Excel Programming 3 August 5th 05 02:33 PM
Exchanging data between Linux and Excel Kiwi Trader Guy Excel Programming 1 June 12th 05 12:45 PM


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