+ Reply to Thread
Results 1 to 8 of 8

Hi all I keep getting a Language reference for Visual Basic for Applications (VBA)

  1. #1
    Registered User
    Join Date
    02-17-2017
    Location
    Cornwall, England
    MS-Off Ver
    2016
    Posts
    23

    Angry Hi all I keep getting a Language reference for Visual Basic for Applications (VBA)

    I am using a worksheet change

    at first it was changing the work shhet to uppercase and now I also want it to move a row to an other worksheet if Colum CW (101) = Yes.

    If I have the uppercase code first it will not mover the row so i put the move row firs and now I keep getting Language reference for Visual Basic for Applications (VBA) error what am i missing please see code
    Please Login or Register  to view this content.
    any help would be very much appreciated many thanks all.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Hi all I keep getting a Language reference for Visual Basic for Applications (VBA)

    Quote Originally Posted by Shades1970 View Post
    I keep getting Language reference for Visual Basic for Applications (VBA) error
    What's the exact error message please? That's not an error that's familiar to me.
    Rory

  3. #3
    Registered User
    Join Date
    02-17-2017
    Location
    Cornwall, England
    MS-Off Ver
    2016
    Posts
    23

    Re: Hi all I keep getting a Language reference for Visual Basic for Applications (VBA)

    I sorry if I did not provide enough info the erroe is as followes:

    Rub-Time error '1004':

    Method 'Intersect' of object'_ Global' failed.

    (this comes up on the following line)
    If Intersect(Target, Range("A:G, R:R, AB:AL, AO:AR, AS:AS, AV:AV, AZ:AZ, BD:BD, BH:BH, BL:BL, BP:BP, BT:BT, BX:BX, CB:CB, CF:CF, CJ:CJ, CN:CN, CR:CR, CT:CT")) Is Nothing Then Exit Sub

    I hope this helps solve this error many thanks.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Hi all I keep getting a Language reference for Visual Basic for Applications (VBA)

    If you delete the Target row then the Target object will become an invalid referenced.

    Do whatever you need to do to the target row before deleting it.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Hi all I keep getting a Language reference for Visual Basic for Applications (VBA)

    Since there's no overlap between the ranges you're monitoring, you could also move the last part into an Else clause of the first If statement.

  6. #6
    Registered User
    Join Date
    02-17-2017
    Location
    Cornwall, England
    MS-Off Ver
    2016
    Posts
    23

    Re: Hi all I keep getting a Language reference for Visual Basic for Applications (VBA)

    Quote Originally Posted by rorya View Post
    Since there's no overlap between the ranges you're monitoring, you could also move the last part into an Else clause of the first If statement.
    How do I do that as I did try Else buy I may have been ding it wrong I am not an expert google has been my friend as well as you guys your help is very much appreciated.

  7. #7
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Hi all I keep getting a Language reference for Visual Basic for Applications (VBA)

    Like this:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-17-2017
    Location
    Cornwall, England
    MS-Off Ver
    2016
    Posts
    23

    Re: Hi all I keep getting a Language reference for Visual Basic for Applications (VBA)

    Many thanks for that it all work as it should now

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Visual Basic for Applications - Automation error
    By Adrian Parker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-08-2017, 11:11 AM
  2. Replies: 6
    Last Post: 08-18-2010, 03:22 PM
  3. VB for Applications to Visual Basic
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-01-2009, 03:31 PM
  4. [SOLVED] RE: Where do I find help for Visual Basic for Applications Extensibili
    By K Dales in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2005, 01:05 PM
  5. [SOLVED] Visual Basic for Applications Help not working right.
    By Jack Gillis in forum Excel General
    Replies: 13
    Last Post: 08-17-2005, 09:05 PM
  6. [SOLVED] Visual Basic for Applications Not Working Right -- Follow Up
    By Jack Gillis in forum Excel General
    Replies: 2
    Last Post: 06-06-2005, 05:05 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