Results 1 to 2 of 2

Using variable in conditional formatting

Threaded View

  1. #1
    Registered User
    Join Date
    07-16-2012
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    35

    Using variable in conditional formatting

    I'm sure this is probably a simple question, but how do i adapt the below code to allow it to pick up the value of the variable as opposed to just enetering the words Foo and Bar,

    Selection.FormatConditions.Add Type:=xlExpression, Formula1:="mod(row(),Foo)=Bar"
    Thanks
    Andy
    Last edited by vtxvtx; 07-17-2012 at 09:53 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1