+ Reply to Thread
Results 1 to 8 of 8

VBA Error -2147024809 (could not get the Column property. Invalid argument)

  1. #1
    Registered User
    Join Date
    09-04-2012
    Location
    Texas
    MS-Off Ver
    Excel 2016, 2019
    Posts
    53

    VBA Error -2147024809 (could not get the Column property. Invalid argument)

    Hello,

    I am a newbie to VBA. I have a phone list that I have added column. when I double click on a selected contact and it displays the contact information I receive the following error " Error -2147024809 (could not get the Column property. Invalid argument)". I have reviewed the code but am not able to find where its going off the rails.

    Any and all assistance is appreciated
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,552

    Re: VBA Error -2147024809 (could not get the Column property. Invalid argument)

    There's no "Column" Property in ListBox.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-04-2012
    Location
    Texas
    MS-Off Ver
    Excel 2016, 2019
    Posts
    53

    Re: VBA Error -2147024809 (could not get the Column property. Invalid argument)

    Jindon
    Thanks for the reply and offered solution. However, I am not quite sure how to apply this (I am new to VBA). Am I not already declaring this under "Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)"
    *
    Please Login or Register  to view this content.
    *

    or should that be changed to

    *
    Please Login or Register  to view this content.
    *

    Thanks
    Jaycee66
    Last edited by jaycee66; 06-21-2021 at 07:55 PM. Reason: Administrative changes

  4. #4
    Registered User
    Join Date
    09-04-2012
    Location
    Texas
    MS-Off Ver
    Excel 2016, 2019
    Posts
    53

    Re: VBA Error -2147024809 (could not get the Column property. Invalid argument)

    I will try to clarify my issue. when I go to my phone book form select last name Search "ca" my contacts are displayed. When I double click to get the data I receive the error box "VBA Error -2147024809
    (could not get the Column property. Invalid argument". It seems that I have an error in the double click instructions but can not what is causing it.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,552

    Re: VBA Error -2147024809 (could not get the Column property. Invalid argument)

    Thanks for adding code tags.
    Last edited by jindon; 06-23-2021 at 12:54 AM.

  6. #6
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: VBA Error -2147024809 (could not get the Column property. Invalid argument)

    The problem is RowSource. (It always gets you in the end.) If memory serves, this is a long know problem.

    If you comment out the Rowsource line in cmdContact, and manually populate the Listbox1:
    Please Login or Register  to view this content.
    The error is gone now, however, since you aren't using Rowsource anymore, the Headings for the listbox aren't populated. You'll have to manually add labels to replace them.

    Hope this helps.
    David
    (*) Reputation points appreciated.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,552

    Re: VBA Error -2147024809 (could not get the Column property. Invalid argument)

    Your named range needs to be edited.
    Go to [Formulas] - [Name manager] - Select "outdata",

    Now you see the formula
    =OFFSET(phonelist!$Q$9,0,0,COUNTA(phonelist!$Q$9:$Q$10000),7)

    Change 7 to 10
    =OFFSET(phonelist!$Q$9,0,0,COUNTA(phonelist!$Q$9:$Q$10000),10)

    This should solve the problem.

    P.S.

    I didn't know Column works, so ignore my post #2...

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,552

    Re: VBA Error -2147024809 (could not get the Column property. Invalid argument)

    jaycee66, thanks for the rep.

+ 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. Error: Could not get the List Property. Invalid Argument.
    By Eiza Bahari in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2020, 03:57 AM
  2. [SOLVED] Getting: could not get List property. Invalid argument error
    By sniper1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-11-2020, 05:25 AM
  3. [SOLVED] could not get the list property invalid argument - VBA Error code
    By chrismccarthy17 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-02-2016, 11:23 AM
  4. [SOLVED] Could not get Column property,Invalid argument
    By Learning ExL in forum Excel General
    Replies: 5
    Last Post: 04-21-2015, 01:29 AM
  5. [SOLVED] Getting compile error 'Wrong number of argument or invalid property assignment'
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-17-2014, 07:50 AM
  6. Replies: 3
    Last Post: 04-28-2010, 05:54 PM
  7. [SOLVED] Error: Wrong number of argument or invalid property assignment?
    By Mike in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2006, 01:35 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