+ Reply to Thread
Results 1 to 3 of 3

Closing Excel Path Popup

  1. #1
    Registered User
    Join Date
    03-17-2014
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2013
    Posts
    16

    Closing Excel Path Popup

    Hi there.

    I'm trying to get a vba macro in which i'd get values from various closed workbooks in a folder. Since this folder is will be sent to many users, and Indirect doesn't work and i don't want to use Pull formula, i came up with the code above. I'm using the function Cell(FIlename) and a list of workbooks to get the current path.

    "Sub Test()

    Dim Path As String
    Dim Cell As Variant
    Dim Rng As Range

    Set Rng = Selection
    For Each Cell In Rng

    Path = Cell.Offset(0, 13)
    Cell.Value = "=Iferror(Sumproduct(" & Path & ")/2,0)"

    On Error Resume Next
    Next

    End Sub"

    The problem is that everytime a workbook doesn't exist, Excel pop up a windows to input the path. Is there anyway to avoid this action?

    Thank you for your time,

    Fjcosta

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: Closing Excel Path Popup

    Maybe use Dir to check if the full file path exists.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-17-2014
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Closing Excel Path Popup

    Thanks for the help, TMS.

    Managed to do it with application.displayAlerts.

+ 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. popup alert message during the worksheet open and continuous work on the sheet popup jump
    By shailkam2001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2014, 10:24 AM
  2. Replies: 1
    Last Post: 11-26-2013, 08:46 PM
  3. Excel VBA get Network path from local path
    By katto01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2013, 11:31 AM
  4. Replies: 7
    Last Post: 10-09-2009, 10:10 AM
  5. hyperlink navigation path path wrong in Excel 2003
    By CE Admin in forum Excel General
    Replies: 5
    Last Post: 01-07-2006, 03:50 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