+ Reply to Thread
Results 1 to 3 of 3

Compile Error - Syntax Error using CountIfs in VBA

  1. #1
    Registered User
    Join Date
    07-22-2004
    Posts
    2

    Compile Error - Syntax Error using CountIfs in VBA

    I am looking to automate a process and I need to enter a formula based on two criteria.
    The formula works perfect when I enter it manually in the cell, but I get an error populating the cell using VBA
    I know it has something to do with the double quotes, so I tried the




    This is the formula I want to paste in the cell using VBA

    Please Login or Register  to view this content.
    Fairly certain it has something to do with the double quotes, so I tried

    Please Login or Register  to view this content.
    Any help would be appreciated.

    Thanks

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Compile Error - Syntax Error using CountIfs in VBA

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    07-22-2004
    Posts
    2

    Re: Compile Error - Syntax Error using CountIfs in VBA

    FANTASTIC!
    Thank you!

+ 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. VBA Compile Error: #syntax error
    By PANKAJ1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2018, 02:43 PM
  2. Compile Error:Syntax Error
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2014, 03:52 PM
  3. Excel macro (compile error. syntax error.) error
    By salar_younis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2014, 06:11 AM
  4. [SOLVED] first timer using VB to cut and paste macro - getting compile error syntax error
    By jopedder in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2013, 11:45 AM
  5. Compile Error: Syntax Error
    By ndv in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2013, 03:34 AM
  6. [SOLVED] Compile Error: Expected Expression, Syntax Error
    By gjohn282 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-20-2012, 11:28 PM
  7. Syntax Error and Compile Error: Expected Line Number or Label...
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-31-2011, 09:59 AM

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