+ Reply to Thread
Results 1 to 5 of 5

invalid qualifier error

  1. #1
    Registered User
    Join Date
    09-22-2009
    Location
    Hobart, Australia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Question invalid qualifier error

    i keep getting errors when im trying to run this bit of code

    Please Login or Register  to view this content.
    I'm not even sure if this is the best way to do it. Any tips or ideas would be greatly appreciated

    Regards Mag
    Last edited by Maglor; 09-30-2009 at 09:15 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,982

    Re: invalid qualifier error

    If iRow and iRow3 are supposed to be Long integers, then they don't have any properties, so you can't use iRow.Row as it makes no sense.
    You should also be aware that if you write this:
    Please Login or Register  to view this content.
    you have actually only declared iRow3 as a Long - the others are all Variants. You need to specify a type for each:
    Please Login or Register  to view this content.
    and similarly for your worksheet variables.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    09-22-2009
    Location
    Hobart, Australia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: invalid qualifier error

    Thanks for your reply,

    i didnt realise in typing it that way i was only defining the last variable as the type. seems a bit strange because i picked that up after seeing it in several different places as examples. But as that is the case i will make all the necessary adjustments in that regard.

    I realise what you are saying makes sense to you but unfortunately not to me. I am trying to tell it to cut the row that is what iRow equals and paste/insert it to where iRow3 is in the other worksheet.

    in my VERY limited knowledge of VBA coding i thought that the bit in () was basically saying in ws4 row 2 insert the row. where the 2 is determined by the value of iRow3.

    Please Login or Register  to view this content.
    as you are saying that is obviously wrong could you please provide the correct syntax for what im trying to achieve.

    Thanks again
    Regards
    Mag

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,982

    Re: invalid qualifier error

    Sure - you need:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-22-2009
    Location
    Hobart, Australia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: invalid qualifier error

    Thats brilliant, worked a treat, thank you once again.

+ 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