Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating a Worksheet in VBA

Hello,

Could anyone please tell me how i can create a new worksheet calle
"Acorn" and have the Tab coloured Orange.

Also in a seperate routine i want to change the Tab colour to blue i
cell A17 contains data.

Thanks in advance

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Creating a Worksheet in VBA

Try this

Sub test()
On Error Resume Next
Worksheets.Add.Name = "Acorn"
Sheets("Acorn").Tab.ColorIndex = 46
On Error GoTo 0
End Sub

Blue = 5


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Jako " wrote in message ...
Hello,

Could anyone please tell me how i can create a new worksheet called
"Acorn" and have the Tab coloured Orange.

Also in a seperate routine i want to change the Tab colour to blue if
cell A17 contains data.

Thanks in advance.


---
Message posted from http://www.ExcelForum.com/



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
Creating a list from a different worksheet Hammer[_2_] Excel Discussion (Misc queries) 1 February 11th 10 01:12 PM
Creating a Worksheet zephyr Excel Discussion (Misc queries) 2 September 11th 06 07:25 AM
Creating a worksheet in Spanish Kent Excel Discussion (Misc queries) 1 March 1st 05 05:16 PM
Creating a new worksheet from another Sheeny[_13_] Excel Programming 2 May 25th 04 06:14 PM
Creating a copy of a worksheet Simon[_13_] Excel Programming 4 December 14th 03 12:09 AM


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