help with a macro

J

JAZZNAURA

Hope someone can help with a macro. Want to highlight cells depending on
a value returned by a vlook up formula. If a value of 6 (could be
anything from 2 to 50) is returned in cell A100 (could be any column,
cell) then highlight the next 6 cells down or up depending on which row
value is in (alternating, first row upwards, second downwards, third
upwards and so on). Each column will only need to be highlighted up or
down.

New to excel don’t know if this is straight forward or not.

Hope I’ve explained myself clearly, any assistance would be
appreciated, really, been at it all day :confused:

Cheers
 
J

JAZZNAURA

thanks for the reply,

have 4000 cells with values, want to update on a daily bases. without
macro would take alot of time.

will try to be more precise,

Have a spreadsheet shows 4000 warehouse locations (location o
products). Each cell is a location in the warehouse; some products hav
more than one location. I import a text file into the wookbook whic
tells me which product has more than one location (2, 3, 50, etc) if
product take up more than 1 location, the location are always next t
each other.

What I’ve done so far is to use vlookup to look at locations in fil
and allocated the number (the number of locations the product has) t
the cell that correspond to that location. What I need is a macro o
formula that will look at the cells and the number within and tha
highlight the cells next to it according to the number in the cell (
in cell, highlight 5 cells, 50 highlight 50). The warehouse runs up on
aisle and then down the next and so on. So I need to be able t
highlight cells up one column and then down the next and then up, the
down and so on.

Hope this is better.

Thanks

Apologies to all for my lack of knowledge.

cheer
 
J

JAZZNAURA

thanks for the reply,

have 4000 cells with values, want to update on a daily bases. without
macro would take alot of time.

will try to be more precise,

Have a spreadsheet shows 4000 warehouse locations (location o
products). Each cell is a location in the warehouse; some products hav
more than one location. I import a text file into the wookbook whic
tells me which product has more than one location (2, 3, 50, etc) if
product take up more than 1 location, the location are always next t
each other.

What I’ve done so far is to use vlookup to look at locations in fil
and allocated the number (the number of locations the product has) t
the cell that correspond to that location. What I need is a macro o
formula that will look at the cells and the number within and tha
highlight the cells next to it according to the number in the cell (
in cell, highlight 5 cells, 50 highlight 50). The warehouse runs up on
aisle and then down the next and so on. So I need to be able t
highlight cells up one column and then down the next and then up, the
down and so on.

Hope this is better.

Thanks

Apologies to all for my lack of knowledge.

cheer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top