Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How are cell formats in one linked workbook carried forward to ano

I am using formulas to bring cell data from one worksheet to another. I also
want to bring forward the cell formats since some of the cells are color
coded.

Cell formats on the source document may change as the data changes. The
original cell color is manually set when the source spreadsheet is created
but can change as updates occur.

Does anyone have examples of how this is done?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default How are cell formats in one linked workbook carried forward to ano

There is no easy way to carry the formats forward. XL functions return values
only. There are no functions that return formats. To do what youwant will
require custom macros. If you want to persue that reply back. Note that the
proposed macros are not simple in nature.
--
HTH...

Jim Thomlinson


"Ron Nichols" wrote:

I am using formulas to bring cell data from one worksheet to another. I also
want to bring forward the cell formats since some of the cells are color
coded.

Cell formats on the source document may change as the data changes. The
original cell color is manually set when the source spreadsheet is created
but can change as updates occur.

Does anyone have examples of how this is done?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How are cell formats in one linked workbook carried forward to

Thanks for the information. I have limited experience with macros but would
be interested in an examble that checks the background color of one cell and
sets the current cell based on the results.

Thanks

Ron Nichols

"Jim Thomlinson" wrote:

There is no easy way to carry the formats forward. XL functions return values
only. There are no functions that return formats. To do what youwant will
require custom macros. If you want to persue that reply back. Note that the
proposed macros are not simple in nature.
--
HTH...

Jim Thomlinson


"Ron Nichols" wrote:

I am using formulas to bring cell data from one worksheet to another. I also
want to bring forward the cell formats since some of the cells are color
coded.

Cell formats on the source document may change as the data changes. The
original cell color is manually set when the source spreadsheet is created
but can change as updates occur.

Does anyone have examples of how this is done?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default How are cell formats in one linked workbook carried forward to

You can not read the colours of a closed workbook. So you need code that
opens the book and then you can use a procedure similar to this to read the
interior colour of a cell and use that to set the values of your specified
cells. Once you have coloured the cells then you can close the workbook
again. Probably best to attach all of this to a command button as that would
be the easiest to impliment...

Untested but is will look something like this...

public sub ColourSheet()
dim wbk as workbook

set wbk = workbooks.open(Filename:="c:\MyBook.xls", ReadOnly:=True)

thisworkbook.sheets("Sheet1").Range("A1").interior .colorindex = _
wbk.sheets("Sheet1").range("A1").interior.colorind ex

thisworkbook.sheets("Sheet1").Range("A2").interior .colorindex = _
wbk.sheets("Sheet1").range("A2").interior.colorind ex

wbk.close SaveChanges:=False
end sub

--
HTH...

Jim Thomlinson


"Ron Nichols" wrote:

Thanks for the information. I have limited experience with macros but would
be interested in an examble that checks the background color of one cell and
sets the current cell based on the results.

Thanks

Ron Nichols

"Jim Thomlinson" wrote:

There is no easy way to carry the formats forward. XL functions return values
only. There are no functions that return formats. To do what youwant will
require custom macros. If you want to persue that reply back. Note that the
proposed macros are not simple in nature.
--
HTH...

Jim Thomlinson


"Ron Nichols" wrote:

I am using formulas to bring cell data from one worksheet to another. I also
want to bring forward the cell formats since some of the cells are color
coded.

Cell formats on the source document may change as the data changes. The
original cell color is manually set when the source spreadsheet is created
but can change as updates occur.

Does anyone have examples of how this is done?

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
pulling color from cell of workbook to another linked workbook Sunshine Excel Discussion (Misc queries) 5 September 28th 07 12:42 PM
How can I bring forward formats with Vlookup? candycasey Excel Worksheet Functions 1 May 16th 06 12:47 AM
How do I determine the number of cell formats in this workbook tucsonmissiledude Excel Discussion (Misc queries) 2 October 28th 05 05:59 AM
"to be carried forward" - how to do it? Jerzy Excel Discussion (Misc queries) 7 October 28th 05 05:23 AM
"to be carried forward" - how to do it? Jerzy Excel Discussion (Misc queries) 0 October 25th 05 09:54 PM


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