+ Reply to Thread
Results 1 to 5 of 5

Set wbCSV = Workbooks syntax error

  1. #1
    Registered User
    Join Date
    08-31-2009
    Location
    Mbabane, Zimbabwe
    MS-Off Ver
    Excel 2010
    Posts
    29

    Set wbCSV = Workbooks syntax error

    I am new at Excel VBA!
    I have the following code:

    Please Login or Register  to view this content.
    I get an error on .OpenText - Expected function or Variable

    What is wrong?

    Many thanks
    Last edited by TimTDP; 11-19-2011 at 02:32 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Set wbCSV = Workbooks syntax error

    Hi TimTDP
    No need to set the object
    just.....
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Set wbCSV = Workbooks syntax error

    Cross-posted at http://www.mrexcel.com/forum/showthread.php?t=593204
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    08-31-2009
    Location
    Mbabane, Zimbabwe
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Set wbCSV = Workbooks syntax error

    The solution:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Set wbCSV = Workbooks syntax error

    Thanks shg i was wonder why the easy ones get left
    TimTDP can you please revise the forum rules

+ 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