+ Reply to Thread
Results 1 to 3 of 3

VBA Formula with Type mis-match error

  1. #1
    Registered User
    Join Date
    11-15-2022
    Location
    Washington State, USA
    MS-Off Ver
    360 ProPlus
    Posts
    31

    VBA Formula with Type mis-match error

    I am working on a workbook that takes hyperlink address and through a series of macros with the final result is the file name only and hyperlinked with the original address.

    In the VBAProject Module 4 the InsertFormulasStep2 macro is designed to insert formulas in cells based on the number of records in Sheet1.

    To test the macros, start with the DeleteBlankRowsStep1 procedure.

    The .Range formula is commented and is exactly the same as the formula in B1 of the worksheet (to verify the formula works correctly.)

    I have also tried to write (unsuccessfully) IF statements for the formulas in columns D, E & F so if there is no text in the corresponding row in Column A, that the cells display blank.

    I appreciate your help
    Attached Files Attached Files

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

    Re: VBA Formula with Type mis-match error

    try change to
    Please Login or Register  to view this content.
    You need to double the double quotes when used as a string within a string.

  3. #3
    Registered User
    Join Date
    11-15-2022
    Location
    Washington State, USA
    MS-Off Ver
    360 ProPlus
    Posts
    31

    Re: VBA Formula with Type mis-match error

    You are correct. It needed the double quotes. I had to modify the (A1,"" / "" portion of the code for it to work correctly. I removed the spaces on each side of the /. Changed to A1,""/"" and it works as intended. 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. floating point error or match type issue??
    By dwetzel in forum Excel General
    Replies: 5
    Last Post: 02-09-2021, 09:50 AM
  2. [SOLVED] Index Match Type Mismatch Error
    By VBAJim in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-16-2019, 01:47 AM
  3. [SOLVED] Match/Vlookup/Error-type Formula Needed
    By laurenm in forum Excel General
    Replies: 3
    Last Post: 10-30-2018, 06:31 PM
  4. excel runtime error 13; type miss match
    By terrysoper1973 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-01-2012, 12:13 PM
  5. [SOLVED] Match Type Error
    By blincan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2012, 05:00 PM
  6. Type Mismatch Error on Find Closest Match
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-12-2007, 11:07 AM
  7. Type mis-match error
    By Marcotte A in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2005, 10:25 PM

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