Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Auto set value/formula in entire column cell

Hi Bob,

You are right on the money :-)

I love it when my thoughts can be understood.

That is exactly what i am looking for.

Best regards,
Derrick

"Bob Bridges" wrote:

Got it...or at least I'm getting it. Ok, so ideally your code should call a
function like this:

For Each cell In Target.Offset(0, 0)
cell.Offset(0, 14).Formula = "=""ULUS"" & O:O"
cell.Offset(0, 5).Value = NextAvlName() 'new line in your code

NextAvlName would a) look down the namelist column checking colors, b) pick
out the next available datum (as determined by the cell background color), c)
change the color of that cell to indicate either "used" or "reserved" and d)
return the value to your routine, which stores it in cell.Offset(0,5). Will
that do the trick for you?

And what you're not sure how to do is check the color?

--- "Derrick" wrote:
I am not look along the row but down a column withing the named list taking
the first value in cell without any coloring.

--- "Derrick" wrote:
....The code will then continue after matching X to look up a column 1 in a
named list for cells with no rad color and use the next data in that white
uncolored cell and then insert that data in the target cell and then color that
cell in the named list red or orange.

--- "Derrick" wrote:
....search for available data in a name list and place this data...then
finally paint the cell (in the name list) as red (used) / orange
(reserved) / Green (Not used) to indicate non availability.

For Each cell In Target.Offset(0, 0)
cell.Offset(0, 14).Formula = "=""ULUS"" & O:O"
'this is where i want to place the script
cell.Offset(0, 5).Formula = "test condition"

F.Y.I
My named list has 7 colums of info with relevant header, data1, data 2
....data7 so the search on the list i would think would be referencing
relevant header then looking for data availability (white cell) and doing
its magic to use up and color the cell.

And there are multiple name list for each test case. because the change
event has currently 4 cases within the select case. so i can adapt the
code to each test case.

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
Create One Formula for Entire Column Andrea from MN[_2_] Excel Worksheet Functions 1 November 11th 09 05:39 AM
How do I apply a cell formula to an entire column? mscarolina Excel Worksheet Functions 5 August 28th 09 08:42 PM
Auto-readjust row height to show entire formula results Excel Believer Excel Discussion (Misc queries) 5 December 20th 06 02:41 PM
How to indicate in formula to choose the entire column starting from a specified cell? [email protected] Excel Discussion (Misc queries) 3 June 13th 06 04:25 AM
how can i fix one entire column after putting my formula there so. Hozefa Excel Worksheet Functions 3 April 28th 05 10:21 PM


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