New OOTS products from CafePress
New OOTS t-shirts, ornaments, mugs, bags, and more
Results 1 to 7 of 7
  1. - Top - End - #1
    Ogre in the Playground
     
    lt_murgen's Avatar

    Join Date
    Feb 2012

    Default Best way to turn an Excel sheet with macros into a website

    I was recently running a D6 / AD&D Birthright mashup campaign. I created an excel file based on the D6 Magic system that allows me t rapidly create and cost spells.

    It was highly useful, and I found I could easily convert D6 to D&D spells, and vice-versa.

    I think it would be really useful for many people who create D&D spells, but I don't know how to host it so it can be generally available.

    Techies- any ideas where to start?
    Keeper of the 49 Rules.

    Pet Peeve: Yay ≠ Yeah

  2. - Top - End - #2
    Troll in the Playground
    Join Date
    Jan 2012

    Default Re: Best way to turn an Excel sheet with macros into a website

    I don't presently have access to a computer with Excel. With that having been said, I was able to open an arbitrary .XLS in OpenOffice Calc and save it to .HTML with File->Save as. Looking at the resulting HTML, it would be fairly simple to add links to it and integrate it into an existing website. Or you could register a Neocities website, rename the file "index.html", and upload it there.

    Does that about cover your question?

    Edit: Something occurred to me...Did you want to preserve the macros, not just whatever data you might have? If so, that would complicate things quite a bit. You'd have to learn some basic web programming, but your best option would be to write a simple calculator in HTML/Javascript.
    Last edited by Grinner; 2017-10-13 at 04:17 AM.

  3. - Top - End - #3
    Ogre in the Playground
     
    ElfPirate

    Join Date
    Aug 2013

    Default Re: Best way to turn an Excel sheet with macros into a website

    Newer Office version I think allows you to web-publish a spreadsheet pretty much straight up (like Google spreadsheets are instantly avaialble online if you want). The problem will lie in the macros and what use you make of those since they present a potential security risk and will be blocked almost per default.

    While it should be easy to convert xls into html document it likely won't have the same useage as a macroed xls would have. I strongly suspect that's going to require some degree of web-scripting.

  4. - Top - End - #4
    Ogre in the Playground
     
    lt_murgen's Avatar

    Join Date
    Feb 2012

    Default Re: Best way to turn an Excel sheet with macros into a website

    Quote Originally Posted by Grinner View Post
    Edit: Something occurred to me...Did you want to preserve the macros, not just whatever data you might have? If so, that would complicate things quite a bit. You'd have to learn some basic web programming, but your best option would be to write a simple calculator in HTML/Javascript.
    Most of it is simply linked Excel pulldowns and lookups from another tab full of charts. But there are two macros I would need to preserve. One takes the spell you created an adds it to another table of all the spells the system has created. That way, I don't lose the data. The second one allows you to select a spell and then it auto-formats it into a printable version.

    You are right, I might need to learn some coding.
    Keeper of the 49 Rules.

    Pet Peeve: Yay ≠ Yeah

  5. - Top - End - #5
    Troll in the Playground
    Join Date
    Jan 2012

    Default Re: Best way to turn an Excel sheet with macros into a website

    Quote Originally Posted by lt_murgen View Post
    Most of it is simply linked Excel pulldowns and lookups from another tab full of charts. But there are two macros I would need to preserve. One takes the spell you created an adds it to another table of all the spells the system has created. That way, I don't lose the data. The second one allows you to select a spell and then it auto-formats it into a printable version.

    You are right, I might need to learn some coding.
    Okay. The second macro may not be easy to replicate, depending on how pretty the output needs to be, but it's definitely doable. I've seen Javascript do things like that before.

    The first macro could be more difficult due to the underlying storage requirements. You'd either need to store the generated spells on the user's computer using HTML5's local storage or use some kind of server-side scripting, like PHP. I'm not quite sure what you have envisioned for this, but this particular functionality would extend beyond what I'd call "basic web programming".

  6. - Top - End - #6
    Titan in the Playground
     
    ElfRangerGuy

    Join Date
    Aug 2007
    Location
    Imagination Land
    Gender
    Male

    Default Re: Best way to turn an Excel sheet with macros into a website

    Quote Originally Posted by Grinner View Post
    I'm not quite sure what you have envisioned for this, but this particular functionality would extend beyond what I'd call "basic web programming".
    I'm going to have to agree with this. A spreadsheet doesn't exactly translate into a web page very well. They're basically useless for web applications.

    You could make a web page which does what you want using a database and a lot of scripting, but you'd basically have to recreate everything your spreadsheet is doing.
    "Nothing you can't spell will ever work." - Will Rogers

    Watch me draw and swear at video games.

  7. - Top - End - #7
    Troll in the Playground
     
    Flumph

    Join Date
    Nov 2006
    Location
    England. Ish.
    Gender
    Male

    Default Re: Best way to turn an Excel sheet with macros into a website

    Is there any reason you can't just upload the spreadsheet and provide a link to it?

    Admittedly that will limit the users to people with an appropriate copy of Office/Excel, but it will be easier than trying to reprogram the thing for the web.
    Warning: This posting may contain wit, wisdom, pathos, irony, satire, sarcasm and puns. And traces of nut.

    "The main skill of a good ruler seems to be not preventing the conflagrations but rather keeping them contained enough they rate more as campfires." Rogar Demonblud

    "Hold on just a d*** second. UK has spam callers that try to get you to buy conservatories?!? Even y'alls spammers are higher class than ours!" Peelee

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •