+ Reply to Thread
Results 1 to 4 of 4

Questions opening a spreadsheet

  1. #1
    Registered User
    Join Date
    09-04-2013
    Location
    richardson, tx
    MS-Off Ver
    Excel 20037
    Posts
    28

    Questions opening a spreadsheet

    This is actually 2 questions.

    I currently open a workbook using the following syntax
    Please Login or Register  to view this content.
    Question 1: Can I specify a path to start looking? Currently the File Open window starts in home directory for personal.xlb.
    Question 2: How do I determine if the file I am trying to open is already open?

    thank you
    Galdalf2524

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Questions opening a spreadsheet

    Hi,

    1. To specify the path to start looking, insert this line before you call Application.GetOpenFilename:
    Please Login or Register  to view this content.
    Just change the string to match the path that you want to use.

    2. Insert these lines after the file has been chosen (or move the declaration to the top of your subroutine if you wish):
    Please Login or Register  to view this content.
    And then copy this function into your VBA module:
    Please Login or Register  to view this content.
    Hope this helps

  3. #3
    Registered User
    Join Date
    09-04-2013
    Location
    richardson, tx
    MS-Off Ver
    Excel 20037
    Posts
    28

    Re: Questions opening a spreadsheet

    ajryan88
    thank you for your help

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Questions opening a spreadsheet

    You're very welcome

+ 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. 2 questions: hyperlinking all URLs in a spreadsheet and autofilling sentences
    By TheVolkinator in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-14-2013, 09:58 AM
  2. Training spreadsheet questions
    By Maisiedays in forum Excel General
    Replies: 5
    Last Post: 05-14-2010, 12:40 PM
  3. opening a spreadsheet
    By stumped in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-09-2006, 09:10 PM
  4. Opening a spreadsheet
    By Multiple speadsheets in forum Excel General
    Replies: 1
    Last Post: 03-08-2006, 01:20 PM
  5. [SOLVED] Spreadsheet Questions
    By Metalteck in forum Excel General
    Replies: 4
    Last Post: 06-02-2005, 03:05 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