WebmasterForums.NET - Webmaster Forums & Directory
 

Go Back   WebmasterForums.NET - Webmaster Forums & Directory > Design and Development > Site Programming and Coding
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Site Programming and Coding Have a problem with some code on your site? Ask our other members for advice and help.

Reply
 
Thread Tools Display Modes
Old 07-25-2006, 08:09 PM   #1
Darioush
Member
 
Darioush's Avatar
 
Join Date: Jul 2006
Location: Sunny California
Posts: 53
Darioush is on a distinguished road
Default help with coding in excel

Hi,

How do i write a code in VB to define names for cells in excel?

The following is the code i use but doesn't work.

work***s("Data").Names.Add Name:="myF4",
RefersToR1C1:="=***1!R4C4"
work***s("Data").FormatConditions.Add Type:=xlCellValue,
Operator:=xlGreater, Formula1:="50"
work***s("Data").FormatConditions(1).Interior.Colo rIndex = 6
work***s("Data").FormatConditions.Add Type:=xlCellValue,
Operator:=xlLess, Formula1:="50"
work***s("Data").FormatConditions(2).Interior.Colo rIndex = 42

Thank you for your help.
__________________
Napa Valley wine, wineries, on-line wine sales, lodging, vacations, golf, current events http://www.napavalley.com
Darioush is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:21 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
WebmasterForums.NET - Webmaster Forums & Directory