Google Groups Home
Help | Sign in
Message from discussion Excel Row Format
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
dlisterjr  
View profile
 More options Apr 1, 3:48 pm
Newsgroups: microsoft.public.windows.powershell
From: dlisterjr <dliste...@discussions.microsoft.com>
Date: Tue, 1 Apr 2008 12:48:02 -0700
Local: Tues, Apr 1 2008 3:48 pm
Subject: Re: Excel Row Format
The problem is that I need to search each row for data and then format that
row base on if the data exist. The macro really didn't help with that.

"Oisin (x0n) Grehan [MVP]" wrote:

> On Apr 1, 10:27 am, dlisterjr <dliste...@discussions.microsoft.com>
> wrote:
> > Is there a way to search a spreadsheet and then change the font color of the
> > row if the cell contains a string? IE if a cell in the row contains the word
> > "closed" (it won't be the only word in the cell), I want the whole row font
> > color red.

> Hi,

> Yes, this should be possible in PowerShell - I don't have the facility
> to test it here, but when usually when I need to do something like
> this, I record a macro in Excel of the actions I want to automate,
> then I view the VBA code in the editor IDE and translate/adapt it to
> powershell. You'll need an entry point into the Excel object model,
> which starts with:

> $excel = new-object -com excel.application

> ..and should end with:

> $excel.Quit()

> If you're still stuck on this later, drop a note back here and I'll
> help you finish it off.

> - Oisin


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google