+ Reply to Thread
Results 1 to 4 of 4

Issue with if statement

  1. #1
    Registered User
    Join Date
    01-27-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    2

    Issue with if statement

    Can someone explain me why the value of RCV_SIZE is as shown in the immediate window?

    VBA Problem.PNG

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Issue with if statement

    Try changing your ampersands (&) to And
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Issue with if statement

    Welcome to the forum,
    I am seriously thinking you're pulling our leg here.
    Read you value for the two variables you're concatenating and the final "HR" what else do you expect?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Issue with if statement

    To clarify, try changing your ampersands (&) to And in the If statements NOT in the subsequent concatenations.

+ 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. if statement issue
    By headford in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2013, 12:30 PM
  2. If statement Issue
    By Dinho05 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-20-2012, 06:04 PM
  3. Issue with IF statement
    By DennyMathews in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2012, 05:39 AM
  4. Issue with IF statement
    By DennyMathews in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-09-2012, 10:06 AM
  5. IF,And, or then statement issue
    By CatFox in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2012, 05:25 PM
  6. [SOLVED] Issue with If Statement
    By ATLGator in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2012, 08:19 PM
  7. IF Statement issue
    By ClikClak in forum Excel General
    Replies: 2
    Last Post: 05-19-2010, 11:24 AM
  8. If statement issue
    By punter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2008, 10:15 AM

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