+ Reply to Thread
Results 1 to 3 of 3

simplify open & close vba code

  1. #1
    Forum Contributor
    Join Date
    03-11-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    252

    simplify open & close vba code

    hi,
    Is there a more simple code to do to opening and closing worksheets.
    Please Login or Register  to view this content.
    thanks in advance
    herukuncahyono

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: simplify open & close vba code

    why not keep both the workbooks open in that case try this macro

    Please Login or Register  to view this content.
    when you use with functions you need not close or open

    another advantage is you can park this macro either in book1 or in book2. only condition is that both workbooks open.

  3. #3
    Forum Contributor
    Join Date
    03-11-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    252

    Re: simplify open & close vba code

    hello venkat1926,
    Thanks for suggestion, why the book should be closed because it will import data from other places ( access ) and if open can not receive data , I need to import data periodically to compare the data after the data changes ( updated)
    because with my code above the process seem not smooth or slow.
    and the next function is work only in active workbook

    regards
    herukuncahyono

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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