Results 1 to 8 of 8

Code no longer Working, Error 91

Threaded View

  1. #1
    Registered User
    Join Date
    02-12-2018
    Location
    Canada
    MS-Off Ver
    Pro 2010
    Posts
    4

    Code no longer Working, Error 91

    Hi,

    I have a spreadsheet that uses this code on one of the sheets. It's used for charting a row of variables based on what row you click on. It can also chart based on what row you select with the up and down arrows (spinbuttons). Basically I have a row of variables and I load that row into the chart. The row is selected via CR7. The variables in the row are loaded using the "=INDIRECT("X"&$CR7)". I don't know what changed but this used to work, now when I open the spread sheet I get Error 91. As far as I can tell it might be that chkRowClick_Click() is not being set to True but I can't tell where it gets set on the sheet. I didn't make this sheet or code so I'm hoping this is a simple fix if anyone can help?

    Thanks

    Private Sub chkRowClick_Click()
    
    End Sub
    
    Private Sub SpinButton1_SpinDown()
        With Range("CR7")
            .Value = WorksheetFunction.Max(0, .Value - 1)
        End With
        End Sub
    
    Private Sub SpinButton1_SpinUp()
        With Range("CR7")
            .Value = WorksheetFunction.Max(0, .Value + 1)
        End With
    End Sub
    
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
        'If chkRowClick.Value = "True" Then
            Dim PreviousRow As Integer
            PreviousRow = ActiveCell.Row
            Sheet24.Range("CR7").Value = PreviousRow
        'End If
    End Sub
    Last edited by Barn01; 02-13-2018 at 09:14 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Code to hide rows is no longer working
    By NancyPez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2016, 11:36 AM
  2. PasteSpecial in VBA Code No Longer Working
    By kmsandrbs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-06-2014, 01:27 PM
  3. VB Code no longer working
    By buttercup1227 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2014, 10:38 AM
  4. [SOLVED] Private sub code no longer working (print area macro)
    By rikkyshh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2013, 10:43 AM
  5. [SOLVED] Code stopped working, can no longer copy and save a worksheet
    By Oracle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2012, 07:56 PM
  6. VBA Code no longer working
    By jdbel in forum Excel General
    Replies: 16
    Last Post: 11-16-2011, 07:33 PM
  7. mail Code no longer working in 2007
    By lonnied in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2007, 06:14 PM

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