![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 142
|
Is it possible to have a worksheet's tab color change based on whether or not any information has been entered into any of its cells?
Any help is greatly appreciated!!! Thanks. |
|
|
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Only in Excel XP
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 142
|
Any chance of VB script on this?
|
|
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Place this in the Private module of the Worksheet.
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("A1:A10")) Is Nothing Then Me.tab.Color.Index = 6 End If End Sub |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Posts: 142
|
After placing the above code into a new worksheet to test it, then entering a number in one of the cells covered by the range, I got a "runtime error 424 - Object required".
When I go to DeBug, the line with "Me.Tab.Color.Index = 6" is hilighted. I am trying to do this with Excel 2002 rather than XE as prescribed above. Any ideas? Thanks |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
HI
To (dont know how tot say.. repeat! again!) Dave saying on XP this is coded E2002, but there is no 2002 as such.... Office 98 is true and so is 2001 these are not for this board and not considered... should be ok you siad 2002 you mean PC version XP not PC version 2000? the others are APPLE MAC conversions, ermm Apple mac programms.
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Posts: 142
|
Well...
I am running Excel on a PC and when I go to the "help" menu and click on "about", it says I'm running Excel 2002. |
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
Hi
Well you bring good news, Excel 2002 in the help file ie about help abbout is readingg Excel 2002 this is fine you ok XP. Let me expalin! Its a Microsoft thing, need i say any more, the code dave provided should be ok.... so lost, all i can suggerst is atler the code line that bugs in debug and edeit to suite,,,, like i say should be fine,.
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Mar 2002
Posts: 142
|
Was able to make it work with a little bit of a change.
Note the third line contains "ColorIndex" instead of "Color.Index" All's well! Thanks for the Help! |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|