Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Referencing a cell color in different workbook

I need to programmatically reference a cell in a different workbook
(Excel file). Once I reference that cell, I need to determine the
color and then change a cell in my current workbook to that exact
color. Example:

C:\ExcelFile1.xls
Column C
Row 33
Color is Blue

H:\Project\MasterPlan.xls
Column H
Row 40
Color needs to be Blue as it is in above workbook\cell.

Any thoughts? THANKS

Tammy


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Referencing a cell color in different workbook

Will the workbooks be open? Assuming so


Workbooks("MasterPlan.xls").Worksheets("Sheet1").R ange("H40").Interior.Color
index = _

Workbooks("ExcelFile.xls").Worksheets("Sheet1").Ra nge("C33").Interior.Colori
ndex


--

HTH

RP
(remove nothere from the email address if mailing direct)


"FireGeek822" wrote in message
oups.com...
I need to programmatically reference a cell in a different workbook
(Excel file). Once I reference that cell, I need to determine the
color and then change a cell in my current workbook to that exact
color. Example:

C:\ExcelFile1.xls
Column C
Row 33
Color is Blue

H:\Project\MasterPlan.xls
Column H
Row 40
Color needs to be Blue as it is in above workbook\cell.

Any thoughts? THANKS

Tammy




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Referencing a cell color in different workbook

Thanks Bob. My first try with this I used RGB( ) and didn't realize
the color index is a long number and doesn't use the traditional RGB
numbers.

Now I need to try to restrict all users of both workbooks to use only 6
specific colors.

I appreciate the help Bob, Thanks Again!!!

Tammy

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
Using names referencing a cell in another workbook jimk Excel Worksheet Functions 2 December 30th 09 09:16 PM
Referencing a cell in another worksheet within the same workbook chickalina Excel Worksheet Functions 0 February 10th 09 01:50 PM
Referencing a cell in another worksheet within the same workbook chickalina Excel Worksheet Functions 0 February 10th 09 01:49 PM
variations on referencing a cell in another workbook Eric Excel Discussion (Misc queries) 5 November 14th 08 08:16 PM
referencing a cell in a workbook on the web. JD Excel Programming 1 August 8th 05 02:18 PM


All times are GMT +1. The time now is 11:07 PM.

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"