LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default How to accomplish?

Steve Grosz,

You could use the following VBA, I was considering a couple of things.
First of all, there are no blanks in Column A, which the the NAME column.
Second, that Columns 1 - 4 are A,B,C,D. Please amend the code as necessary
for your needs, or repost for more help.

Public Sub Sub_1()
Dim x As Long
x = Excel.WorksheetFunction.CountA(Columns("A:A"))
For y = 2 To x
Range("A1").Cells(y, 5).Formula = "=IF(C" & y & "B" & y & ",TRUE,FALSE)"
Next
End Sub

You can filter on Column 5 for TRUE to see the Last Week to This Week Changes.

--
--Thomas [PBD]
Working hard to make working easy.
Answered your question? Click ''''Yes'''' below.


"steve grosz" wrote:

Ok here's my situation. I'm not much of a VB programmer, but wanted to try
something.

We generate a worksheet once a week that has 4 columns.

Col1 - name
Col2 - last weeks position (a number value)
Col3 - this weeks position (a number value)
Col4 - size

I would like to compare col 2 & 3, and if col1 is larger, display a image,
if col2 is large, display a different image in a cell on the same sheet.

How can I accomplish this? Loop through all the users, compare the values
of col2 & 3 for each of them and display a image in a seperate cell, say
col 5??

Any help on this would be greatly appreciated!!!!

Thanks!
Steve



 
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
How to accomplish this tkraju via OfficeKB.com Excel Discussion (Misc queries) 4 March 13th 10 06:17 PM
How do I accomplish this? scheduler Excel Worksheet Functions 2 October 26th 06 06:40 PM
Formula or Function to accomplish this? elcapitan Excel Worksheet Functions 6 March 12th 06 09:19 AM
What's the best solution to accomplish this? WDR Excel Programming 4 January 16th 06 05:52 AM
How can a accomplish these tasks properly??? Frantic Excel-er Excel Discussion (Misc queries) 0 June 20th 05 09:10 PM


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