+ Reply to Thread
Results 1 to 6 of 6

Procedure works only if I click F5 in VBEditor

  1. #1
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    605

    Procedure works only if I click F5 in VBEditor

    Hi Friends

    I have code that user selects folder and all the xls files in that folder saving as xlsx. I saved this code in Personal workbook to use it frequently. But, when I trigger code it only opens first file in that folder and stops. But when I open VB editor and click F5 (run) it works without problem.
    Here is my code:

    Please Login or Register  to view this content.
    How I can solve this problem. Please help.

    Thank you
    Appreciate the help? CLICK *

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    8,031

    Re: Procedure works only if I click F5 in VBEditor

    How are you triggering it?

    I just tried via Alt+F8 and it works fine for me.

    BSB

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Procedure works only if I click F5 in VBEditor

    If you are running it using a shortcut key that involves the Shift key, try using a key combination that doesn't require Shift.

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    605

    Re: Procedure works only if I click F5 in VBEditor

    Quote Originally Posted by rorya View Post
    If you are running it using a shortcut key that involves the Shift key, try using a key combination that doesn't require Shift.
    That is true, I use short cut with shift button.
    With Alt+F8 there is no problem.

    But I changed Ctrl+Shift+W to Ctrl+w it worked but another problem occurred. After converting files to xlsx the selection window does not close.

    There is no problem for me to use Alt+F8 to start the process, but it is interesting for me why shortcut creates such problem?

    Thank you

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Procedure works only if I click F5 in VBEditor

    The Shift issue is a known bug (it relates to using Shift to prevent event code from running when you open a workbook) but I don't know why Ctrl+W would leave a dialog open. Can you put a macro button on your QAT?

  6. #6
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    605

    Re: Procedure works only if I click F5 in VBEditor

    Quote Originally Posted by rorya View Post
    The Shift issue is a known bug (it relates to using Shift to prevent event code from running when you open a workbook) but I don't know why Ctrl+W would leave a dialog open. Can you put a macro button on your QAT?
    I did not know about that bug.
    It is good idea to put to Quick Access

    Thank you

    Good Luck

+ 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. [SOLVED] Get Caption From Userform CommandButton During Click Event Procedure
    By skywriter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2015, 02:53 AM
  2. Change textbox text with button click procedure
    By akotronis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2014, 09:26 AM
  3. VBA Ok Click() If Statement Procedure Too Long
    By LukeAM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2014, 06:59 AM
  4. Dbl Click Event Procedure
    By vbastruggles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2013, 10:35 PM
  5. Call procedure when I click any commandbutton
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2012, 04:33 AM
  6. Double click procedure in an add-in
    By james.rees02 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2009, 03:23 AM
  7. Can any one help me out vbeditor for excel
    By man in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-24-2005, 02:20 PM

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