+ Reply to Thread
Results 1 to 3 of 3

Inputbox defining the Pathname is only opening the first workbook and not running routine

  1. #1
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Inputbox defining the Pathname is only opening the first workbook and not running routine

    Hi, thanks for looking.

    I have a routine defined as
    Please Login or Register  to view this content.
    .

    I have written another module where I ask the user for the files path, and it will run this code on all the workbooks in the path.

    So far it is only opening the first workbook in the directory and not running anything on the workbook, is there something wrong with this code or do i need to look into the BaseFormat module?

    Thanks for your help

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Re: Inputbox defining the Pathname is only opening the first workbook and not running rout

    Update if anyone can help. I can run this macro whilst in the Visual Basics editor successfully.

    If I call this through a shortcut with no workbooks open - all it does is open the first workbook.

  3. #3
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Re: Inputbox defining the Pathname is only opening the first workbook and not running rout

    It did not work with a shortcut defined as CTRL+SHIFT+M, worked with CTRL+M only.

+ 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. Opening a 2nd Workbook and Running Macro
    By Geoff. in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2014, 06:17 PM
  2. Running A Macro With Information From the Workbook On Opening The Workbook
    By Jaynestown in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-17-2013, 03:04 PM
  3. Replies: 0
    Last Post: 08-16-2013, 12:04 PM
  4. [SOLVED] Perform daily routine without opening Workbook
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-26-2013, 07:02 PM
  5. Inputbox to unhide any sheet upon opening the workbook
    By vignesh rocks in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-03-2012, 05:19 AM
  6. [SOLVED] Running macro upon opening workbook
    By don in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2006, 01:20 PM
  7. VBA code for InputBox vbCancel to run the routine
    By Glenn P in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2005, 06:24 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