Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 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 November 4th, 2006, 12:39 PM
Authorized User
 
Join Date: Oct 2006
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ricespn
Default Change the backround color to cell

Hi,

I'm trying to change the background color on a cell at runtime with VB6 but I'm getting a subscript out of range error.. Can someone help me..? :)

Here is my code:

    'Populate Excel Cell
    With objExcel

        ' Reverse color to black on Carton Cell
        If FinishedCarton = TotalCarton Then
            .range("B3").Interior.Color = 0
        End If


    End With

Thanks!

=======================
Strange and crazy, but everything is possible
__________________
=======================
Strange and crazy, but everything is possible





Similar Threads
Thread Thread Starter Forum Replies Last Post
Change border color for every cell of a table jdang67 CSS Cascading Style Sheets 10 May 6th, 2010 12:21 AM
change cell color martin1 Visual Basic 2005 Basics 2 October 4th, 2006 08:55 AM
Dropdown list Backround color? Thagi ASP.NET 1.x and 2.0 Application Design 2 April 20th, 2006 07:23 AM
Change Cell Color phungleon HTML Code Clinic 2 April 9th, 2006 12:36 AM
change background color of cell based on value vurtman ASP.NET 1.0 and 1.1 Basics 4 February 26th, 2004 03:52 PM





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