Results 1 to 5 of 5

Method range of object global failed

Threaded View

  1. #1
    Registered User
    Join Date
    01-20-2013
    Location
    Kampala
    MS-Off Ver
    Excel 2007
    Posts
    9

    Method range of object global failed

    Hi all,
    I am stuck with this error above named in the row below with arrows
    Private Sub cmdSLSave_Click()
    'reads data from the products store, removes and finally logs this entry
    'in a new form "Sales Records
    Set LastRow = Worksheets("Production Records").Range("B65536").End(xlUp)
    'returns the column number of Instore_quantity
    col = Range("Instore_Qtty").Column <---------------
    topRow = Range("Instore_Qtty").row<----------------
    row = Evaluate("= MATCH(True,Instore_Qtty<>0,0)")
    row = row + topRow - 1
    Debug.Print col, topRow, row
    'End With
    End Sub
    From what i read this error usually comes when the named range is involved is invalid. In debugging i proved that this is actually the problem. Because replacing the "instore_qtty" with another named range did result in same error
    the "instore_qtty" is a named dynamic range on the sheets "Production records"
    I have apparently failed to see what the problem is with the naming of the range
    Below is the actual synatx for the dynamic range "instore_qtty"
    =OFFSET('Production Records'!$H$5,0,0,COUNTA('Production Records'!$H:$H)-1,1)
    If anybody can advise me how to proceed i will be very glad.
    Stephen
    Last edited by darahsten; 01-28-2013 at 03:29 PM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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