+ Reply to Thread
Results 1 to 3 of 3

Check If workbook not open then open workbook and run code

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Check If workbook not open then open workbook and run code

    hi,
    i have below code to copy paste data to once workbook to second workbook

    Please Login or Register  to view this content.
    if workbook "Vouchers - Purchase Transactions With StockItems.xlsm" not open then its giving debug error
    so
    i want if workbook not open then firstly open workbook and then copy paste data


    thanx
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Check If workbook not open then open workbook and run code

    Found an answer
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Check If workbook not open then open workbook and run code

    Post Here For Others

    thanx Google and Excel Forum
    Last edited by HaroonSid; 02-22-2017 at 08:35 AM.

+ 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. Code to check if Workbook is currently open...
    By BuenosDias in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-04-2014, 06:31 AM
  2. Macro to open a closed workbook and select copy cells into an open workbook
    By helloganesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2013, 02:00 PM
  3. Code to open a workbook, do what i want, close it, and open the next
    By stuartsjg in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-30-2010, 05:43 PM
  4. 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
  5. Code to open a workbook , copy info and return it to another workbook using a cell v.
    By england79m in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2008, 11:22 AM
  6. Code check to see if workbook open
    By Aussie_Striker in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-06-2007, 09:12 PM
  7. Need VB code for workbook open to open a link
    By Daniel Baker in forum Excel General
    Replies: 2
    Last Post: 08-17-2006, 08:35 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