+ Reply to Thread
Results 1 to 1 of 1

Excel isn't updating the cells when I Close the worksheet with VBA

  1. #1
    Registered User
    Join Date
    08-08-2019
    Location
    Manitoba
    MS-Off Ver
    MS Office 365
    Posts
    1

    Excel isn't updating the cells when I Close the worksheet with VBA

    Good afternoon,
    I am currently on writing a vba code that does the following sequence:
    1. Open a Userform
    2. Open a second Excel Sheet
    3. Copy userform input data to second excel sheet
    4. Copy/Paste data from initial excel sheet to second excel sheet
    4. Update the second Excel Sheet
    5. Close and save the second excel sheet


    Now my problem is that when i have the line: "Workbooks("test.xlsm").Close SaveChanges:=True " in my code, it doesn't update the cells. I need to update the cells because that data is getting transferred to a CAD software.
    When I take out the Close and Save line, it updates the variables just fine, which triggers the CAD software to update.

    I have tried multiple options like Application.Volatile or writing a VBA code to simulate hitting F2 and Enter in the specific cells


    Thanks,






    Below is the code:

    Please Login or Register  to view this content.
    Last edited by mkrecker; 08-08-2019 at 05:20 PM.

+ 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. [SOLVED] Excel VBA Worksheet Change on Cell input....so close...please help!
    By CastingDirector in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2014, 04:11 PM
  2. [SOLVED] Updating macro to close pop-up windows.
    By JasonNeedsHelp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2014, 01:59 PM
  3. Replies: 7
    Last Post: 02-07-2013, 10:07 PM
  4. Cells not updating when they reference another worksheet
    By nappyjim in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-11-2008, 04:34 PM
  5. Updating cells without using worksheet change event?
    By dsexpress in forum Excel General
    Replies: 1
    Last Post: 04-25-2008, 01:46 PM
  6. Replies: 2
    Last Post: 01-16-2006, 10:38 AM
  7. [SOLVED] Updating linked cells within a workbook, from worksheet to workshe
    By notloiseweiss in forum Excel General
    Replies: 5
    Last Post: 03-03-2005, 04:06 PM

Tags for this Thread

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