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

Steve Grosz,

You would like it to create an "image", by image you mean a picture? That
would be much harder to do as you would have to define an Image Object and
have it relate to the reference point in the book. You could always change
the IF statement that I used to have it say "B C" or "B < C" or "No
Change". Creating a picture wouldn't make the information usable, unless you
are using it just to look at.

Here is another look at it, this will place BC, B<C, No Change in the cells:

Public Sub Sub_1()

Dim x As Long
x = Excel.WorksheetFunction.CountA(Columns("A:A"))

For y = 2 To x
If Cells(y, 2).Value Cells(y, 3).Value Then
Cells(y, 5).Value = "BC"
Else
If Cells(y, 2).Value < Cells(y, 3).Value Then
Cells(y, 5).Value = "B<C"
Else
If Cells(y, 2).Value = Cells(y, 3).Value Then
Cells(y, 5).Value = "No Change"
End If
End If
End If
Next

End Sub

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


"steve grosz" wrote:

Hello Thomas [PBD],

Ok, that sort of does what I would like. I would like to check to see if
b & c are the same, b is higher than c, or c higher than b, and display an
image indicating if there has been a increase (b higher than c) decrease
(c higher than b) or no change.....

Thanks!

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




 
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 03:20 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"