+ Reply to Thread
Results 1 to 3 of 3

VBA Formula Prompts me again to open a workbook

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    VBA Formula Prompts me again to open a workbook

    Greetings, Gurus.

    I have a script designed to prompt you to open a workbook, giving you a selection box to use, and then perform a vlookup from the workbook you selected. I have set all my variables, but there must be some issue with my formula. Although the script enters the correct formula it prompts you twice more to open the workbook before entering the formula. Script below, with comments. Thanks in advance for any help you can offer.

    Please Login or Register  to view this content.
    Last edited by hutch@edge.net; 06-13-2016 at 04:27 PM.

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

    Re: VBA Formula Prompts me again to open a workbook

    You can't put a VBA variable in the middle of a formula like that. You need:
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: VBA Formula Prompts me again to open a workbook

    Fixed me right up. I thought it was something like that, but I tried every combination of the "" & "" I could think of and kept getting an error. I appreciate your help. This thread is SOLVED!

+ 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. Running workbooks.open to open pax-protected file still prompts for a password
    By karinincanada in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2015, 05:06 PM
  2. Need to write formula from open workbook to closed workbook
    By punna111 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2014, 02:33 PM
  3. [SOLVED] bypass opening workbook prompts
    By slxia1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-01-2012, 04:44 AM
  4. macro that prompts to open another Excel file
    By jhmayor03 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2012, 02:19 PM
  5. Replies: 1
    Last Post: 04-15-2011, 11:38 AM
  6. Workbook sheet change event prompts save
    By pprseller in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-29-2009, 02:12 PM
  7. Save an open workbook, then open template workbook and close the saved workbook
    By ondvirg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2009, 10: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