Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 6th, 2005, 06:00 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default check one row down

I have code that when it finds text in a column it will colour it a certain colour.

Also, when the colour is found the text is put into a variable.

Code:
                    If iCurrentCellCol = iArrayColour Then    ' if {1}
                        '
                        If the_Heading <> "" Then    ' if {1}
                            rulesXML = rulesXML & "<fare_rule_lines>"
                            rulesXML = rulesXML & "<heading>" & fix_characters(fix_ampersand(the_Heading)) & "</heading>"
                            rulesXML = rulesXML & "<content>" & fix_characters(Trim(the_Content)) & "</content>"
                            rulesXML = rulesXML & "</fare_rule_lines>"
                            'Exit For
                        End If

                        the_Heading = fix_ampersand(Trim(Range(sRange).Text))
                        the_Content = "&lt;table&gt;"

                    End If
But my problem is I need to find a way of checking the cell one below the cell that is found, and if it is not blank then add that text to the text that is found.

Is this possible?

advaTHANKSnce

Picco

www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
www.piccosmini.co.uk.tt
www.morton.uk.tt
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect to VSS check-in Check-out Programatically rhd110 General .NET 6 August 12th, 2007 07:46 AM
Print the row of datagrid with checkbox with check niks_crasher VS.NET 2002/2003 0 September 2nd, 2006 03:45 AM
how delete row in datagrid which check checkbox ashish2001mca Forum and Wrox.com Feedback 1 September 18th, 2005 03:43 AM
Read a column and Search Row by Row in another col AyatKh Excel VBA 2 January 26th, 2005 12:02 PM
check each row in xml meylon XSLT 3 August 12th, 2004 07:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.