+ Reply to Thread
Results 1 to 5 of 5

Sending an Excel File Without Code

  1. #1
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Sending an Excel File Without Code

    Hi all,

    I have worked on a project that some of you have been very helpful with (find the link to it here) I have since finished this project and it has been live for a few weeks now. The user sent it to some execs in the organization and they want it published on somewhere on our Intranet. The workbook itself contains a lot of code for cleaning and storing the source data, performing calculations, and then running the charting tool. All in all, the excel file is just over 2 Mb's. What I want to know is: is there a way to upload a copy of the file with only the macros for the charting tool?
    Last edited by Mordred; 06-10-2011 at 05:34 PM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Sending an Excel File Without Code

    Mordred,

    You could copy just the macros for the charting tool and paste them into a new module Then right-click that module and select Export. Then saveas the file to be a .xlsx file. Saving as a .xlsx will remove all code. Then close and reopen the file and in the visual basic editor, import that module you exported earlier, and save the file as a .xls or .xlsm format.

    Hope that helps,
    ~tigeravatar

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Sending an Excel File Without Code

    Thanks tiger, so this is not something the average user can do then is it?

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Sending an Excel File Without Code

    Mordred,

    Right. Removing all code is easy because you can just save the file as a .xlsx, but to remove all but some specific macros is trickier, and no, I suppose its not something an average user can do easily.

    ~tigeravatar

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Sending an Excel File Without Code

    Alright, I'll let my peeps know that when it comes time to upload the file that I should take care of the process. Your input is very appreciated.

+ 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