+ Reply to Thread
Results 1 to 8 of 8

Editing worksheets in a .xlam file

  1. #1
    Registered User
    Join Date
    08-22-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    7

    Editing worksheets in a .xlam file

    I have a large reference spreadsheet (stats.xls) that I normally keep hidden and that always opens with excel (as many of my spreadsheets need to reference worksheets in stats.xls in equations) by storing it in C:\Users\Username\AppData\Roaming\Microsoft\Excel\XLSTART.

    All of my colleagues have a similar set-up, but we run different versions of Excel and so the file has to be stored in different folders on each computer (if we want it open in the same manner). This is fine except for when we transfer files to each other - at this point some equations have to be updated with the new directory that the stats.xls file is stored in.

    We also have a custom function Add-in file stored under C:\excel and each version of excel seems not to have a problem running this add-in on start-up.

    After thinking that the stats.xls problem could be resolved by saving it as an Add-in, I tested this and it seemed to work. My question is - can the worksheets in this file, which is now stats.xlam, be edited without having to keep a .xls version of the file and overwriting the .xlam with the updated version of the .xls saved as the .xlam?

  2. #2
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: Editing worksheets in a .xlam file

    Yes, it is possible.

    1. Make sure project explorer and properties windows are both visible in VBA
    2. Select thisworkbook from project explorer, and set IsAddin property to false.

    This will make worksheets visible. Make your changes to the worksheets and reset the isaddin property to true.
    Regards,
    Vandan

  3. #3
    Registered User
    Join Date
    08-22-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Editing worksheets in a .xlam file

    Thanks Vandan.

    The IsAddin property does not appear in the property window when I select my workbook. In fact no properties appear when I select my workbook. When I select individual sheets in the drop down menu the IsAddin property still does not appear, though the sheet does have quite a few other properties that do appear. Am I doing something wrong?

    I'm using Excel 2010 if that makes any difference.

    Thanks again.

  4. #4
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: Editing worksheets in a .xlam file

    I have Excel 2007. Not sure if this is Excel 2010 thing...

    Let's make sure you are looking at the right location.

    Select VBAProject (YourFile) --> Microsoft Excel Objects --> ThisWorkbook Then look for isaddin property.

    See attached picture of one of my files Snap4.jpg

  5. #5
    Registered User
    Join Date
    08-22-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Editing worksheets in a .xlam file

    Yes... I was looking at the wrong part - sorry!

    Thanks ever so much!

  6. #6
    Registered User
    Join Date
    10-18-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    1

    Re: Editing worksheets in a .xlam file

    Thanks for the info

  7. #7
    Registered User
    Join Date
    02-12-2016
    Location
    Ontario
    MS-Off Ver
    2010
    Posts
    2

    Re: Editing worksheets in a .xlam file

    resurfacing an old thread - I'm looking for help with this exact issue, but the image from vandan_tanna does not load

  8. #8
    Registered User
    Join Date
    02-12-2016
    Location
    Ontario
    MS-Off Ver
    2010
    Posts
    2

    Re: Editing worksheets in a .xlam file

    nevermind - found the spot that vandan_tanna is referencing - but I get the error saying

    "This extension cannot be used with the selected file type. Change the file extension in the File name text box or select a different type by changing the Save as type."

+ 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