+ Reply to Thread
Results 1 to 3 of 3

save new data to a closed sheet

  1. #1
    Registered User
    Join Date
    02-16-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    4

    Smile save new data to a closed sheet

    Hi,
    I would like to know if i can automatically save my new data to a sheet which is closed.
    I want to do it w/o opening that sheet via macro.
    Please let me know if it is possible & if possible, give me coding.

    Thanks

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: save new data to a closed sheet

    You can ask the macro to open the file, copy the data, save and close it.

    But without completely opening it, the data transfer cant happen.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: save new data to a closed sheet

    Hi, nakul2617,

    no sheet can be closed as this is a feature of a workbook (so a sheet canīt be opened but made visible and be activated when it was hidden).

    Using ADO you can transfer the contents to a workbook/worksheet but that may overwrite all the contents in the given worksheet (workbook needs not to be opened for that process).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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