View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
43fan[_2_] 43fan[_2_] is offline
external usenet poster
 
Posts: 1
Default Replace value in cell with value from a table/array?

I have a report that's exported to Excel. I want to take that report, copy
it into another sheet, change the formatting a bit, then... run a macro or
program to take the values in certain cells, look them up in an array I've
created on another tab, and replace the value with the corresponding one in
the array.

I can use vlookup to put the value in another cell, but I'm hoping to just
be able to replace the value in the existing cell.

I know I have to use VB to do this, but I'm not sure how. Also, I don't
know how many records will be pulled in each time, so it needs to loop
through until it reaches the end of a column.

Help????

Thanks!!
Shawn