+ Reply to Thread
Results 1 to 2 of 2

Open file into sheet in currently open workbook

  1. #1
    Registered User
    Join Date
    08-23-2019
    Location
    perth
    MS-Off Ver
    2007
    Posts
    3

    Open file into sheet in currently open workbook

    Hello all,
    I'm a newbie here so if this is posted in the wrong place apologies...

    I have an Excel 2007 workbook with several worksheets. To update the content I want to open an html file into a new blank worksheet in the currently open workbook. So far every thing I have tired results in a new workbook being opened with the name of the data file that I am opening.

    Is there a way to open a file into an existing worksheet please???

    TIA.

    Steve C

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Open file into sheet in currently open workbook

    Assuming that the last sheet in your workbook is blank, you can use a Workbook_Open macro.

    Please Login or Register  to view this content.
    Goes in the ThisWorkbook code module. If you already have a Workbook_Open macro, just add the 'Select' line to that macro, since you cannot have two of the same event macros in a module.
    Last edited by JLGWhiz; 12-13-2019 at 12:32 PM.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

+ 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] Macro to open new CSV file or workbook with 1 sheet
    By jhelliar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2019, 11:45 AM
  2. [SOLVED] Using Workbook.Open to open an excel file with a variable path
    By walt737 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2019, 01:01 PM
  3. [SOLVED] Open workbook if not already open then close same file if was not already open
    By abhinavbinkar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-30-2018, 02:50 AM
  4. [SOLVED] Check for existing File name, open if exist or open new workbook if not
    By COURTTROOPER in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2017, 12:32 AM
  5. [SOLVED] Macro to open workbook with a suffix (need help to check if file is already open)
    By rossi_69 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2017, 11:03 AM
  6. Replies: 5
    Last Post: 01-09-2013, 04:06 AM
  7. Replies: 0
    Last Post: 03-06-2006, 01:07 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