Results 1 to 5 of 5

Thread: Bug in Run.Application Excel 2003 - dash in filename

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,446
    Location
    I have come across this before, and I solved it by enclosing the workbook name in single quotes, even though there are no embedded spaces

    Application.Run "'" & wbTarget.Name & "'!ThisWorkbook.Opening"
    Last edited by Aussiebear; 03-11-2025 at 12:12 AM.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •