+ Reply to Thread
Results 1 to 3 of 3

If Not IsEmpty() Not Working Properly

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    19

    If Not IsEmpty() Not Working Properly

    I am attempting to add a series to a chart if a cell (B4) has data in it using the following code. When I step through the statement it Jumps from "If Not IsEmpty(B4) Then" to "End If" even though there is data in cell B4... I don't know why this isn't working and any help would be much appreciated! Thanks!

    If Not IsEmpty(B4) Then
    ActiveSheet.ChartObjects("Chart 2").Activate
    With ActiveChart.SeriesCollection.NewSeries
    .Name = "='Summary'!$C$4"
    .Values = "='Peer Analysis.xlsm'!CTwo_Stat1"
    .XValues = "='Peer Analysis.xlsm'!Chart_Dates"
    End With
    End If
    Last edited by jjcgirl; 04-19-2013 at 04:53 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: If Not IsEmpty() Not Working Properly

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-18-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: If Not IsEmpty() Not Working Properly

    I knew it was probably something small like that, that I was missing! Thanks for the help!

+ Reply to Thread

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