Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Cell and Object change

I am going to press my luck for today and ask one more question.

Using a macro is it possible to"

If sheet1 cell C1 interior color = 1 then sheet2 Object "Oval 1" interior
color = 1

Else
sheet1 cell C1 interior color = 38 then sheet2 Object "Oval 1" interior
color = 38

Hopefully this makes sense??

Thanks in advance,

Jake
--
Jake
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Cell and Object change

Hi Jack (not that I would greet you that way on an airplane):

Try this:

Sub color_jack()
n = Sheets("Sheet1").Range("C1").Interior.ColorIndex
If n = 1 Or n = 38 Then
Sheets("Sheet2").Activate
ActiveSheet.Shapes("Oval 1").Select
Selection.ShapeRange.Fill.ForeColor.SchemeColor = n + 7
End If
End Sub
--
Gary''s Student - gsnu200790


"JakeShipley2008" wrote:

I am going to press my luck for today and ask one more question.

Using a macro is it possible to"

If sheet1 cell C1 interior color = 1 then sheet2 Object "Oval 1" interior
color = 1

Else
sheet1 cell C1 interior color = 38 then sheet2 Object "Oval 1" interior
color = 38

Hopefully this makes sense??

Thanks in advance,

Jake
--
Jake

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
How to change the automatic color in object TB in DC Excel Discussion (Misc queries) 3 December 17th 07 03:56 PM
How to change the name of the object Graph 1 in Excel ? rir Charts and Charting in Excel 4 November 9th 07 09:27 AM
Change multiple object group name GreenBean Excel Discussion (Misc queries) 7 July 23rd 06 10:27 PM
How do I change the default setting for an object when I paste? MichelleSomers Excel Discussion (Misc queries) 0 March 13th 06 09:33 PM
Calendar - change of a size of this object Drahos Excel Worksheet Functions 1 February 14th 06 06:01 PM


All times are GMT +1. The time now is 09:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"