Spaces:
Running
Running
Give me instructions how to add code in exel
Browse filesFiles changed (4)
- README.md+8-5
- index.html+121-19
- script.jsAdded+21
- style.css+26-19
12345678910---title: Excel Code Wizardemoji: 👀colorFrom: purplecolorTo: purplesdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference12345678910111213---title: Excel Code Wizard 🧙♂️colorFrom: graycolorTo: greenemoji: 🐳sdk: staticpinned: falsetags:- deepsite-v3---# Welcome to your new DeepSite project!This project was created with [DeepSite](https://huggingface.co/deepsite).
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Excel Code Wizard</title><link rel="stylesheet" href="style.css"><script src="https://cdn.tailwindcss.com"></script><script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script><script src="https://unpkg.com/feather-icons"></script><script>tailwind.config = {theme: {extend: {colors: {primary: {500: '#3B82F6',},secondary: {500: '#10B981',}}}}}</script></head><body class="bg-gray-50 min-h-screen"><div class="container mx-auto px-4 py-12"><div class="max-w-4xl mx-auto bg-white rounded-xl shadow-md overflow-hidden"><div class="p-8"><div class="flex items-center justify-between mb-8"><h1 class="text-3xl font-bold text-primary-500"><i data-feather="code" class="inline mr-2"></i>Excel Code Wizard</h1><div class="flex space-x-2"><button class="px-4 py-2 bg-primary-500 text-white rounded-lg hover:bg-primary-600 transition"><i data-feather="download" class="mr-2"></i> Export</button><button class="px-4 py-2 bg-secondary-500 text-white rounded-lg hover:bg-secondary-600 transition"><i data-feather="share-2" class="mr-2"></i> Share</button></div></div><div class="grid grid-cols-1 md:grid-cols-2 gap-8"><div><h2 class="text-xl font-semibold mb-4 text-gray-700"><i data-feather="edit-3" class="inline mr-2"></i>Code Instructions</h2><div class="bg-gray-100 p-6 rounded-lg"><ol class="list-decimal pl-5 space-y-4 text-gray-700"><li>Open Excel and press <kbd class="bg-gray-200 px-2 py-1 rounded">ALT + F11</kbd> to open VBA Editor</li><li>Right-click on your workbook name in the Project window</li><li>Select <span class="font-medium">Insert</span> → <span class="font-medium">Module</span></li><li>Paste your code in the module window</li><li>Press <kbd class="bg-gray-200 px-2 py-1 rounded">F5</kbd> to run the code</li><li>Save your workbook as <span class="font-medium">.xlsm</span> to preserve macros</li></ol></div></div><div><h2 class="text-xl font-semibold mb-4 text-gray-700"><i data-feather="clipboard" class="inline mr-2"></i>Example Code</h2><div class="bg-gray-800 p-4 rounded-lg"><pre class="text-gray-200 text-sm overflow-x-auto"><code>Sub HelloWorld()' Simple macro exampleDim ws As WorksheetSet ws = ActiveSheetws.Range("A1").Value = "Hello World!"ws.Range("A1").Font.Bold = Truews.Range("A1").Font.Color = RGB(255, 0, 0)MsgBox "Macro executed successfully!", vbInformationEnd Sub</code></pre></div></div></div><div class="mt-8"><h2 class="text-xl font-semibold mb-4 text-gray-700"><i data-feather="zap" class="inline mr-2"></i>Quick Actions</h2><div class="grid grid-cols-2 md:grid-cols-4 gap-4"><a href="#" class="p-4 bg-gray-100 rounded-lg hover:bg-gray-200 transition text-center"><i data-feather="file-plus" class="mx-auto text-primary-500"></i><p class="mt-2 font-medium">New Macro</p></a><a href="#" class="p-4 bg-gray-100 rounded-lg hover:bg-gray-200 transition text-center"><i data-feather="save" class="mx-auto text-primary-500"></i><p class="mt-2 font-medium">Save Code</p></a><a href="#" class="p-4 bg-gray-100 rounded-lg hover:bg-gray-200 transition text-center"><i data-feather="search" class="mx-auto text-primary-500"></i><p class="mt-2 font-medium">Find Errors</p></a><a href="#" class="p-4 bg-gray-100 rounded-lg hover:bg-gray-200 transition text-center"><i data-feather="help-circle" class="mx-auto text-primary-500"></i><p class="mt-2 font-medium">Get Help</p></a></div></div></div></div></div><script>feather.replace();</script><script src="https://huggingface.co/deepsite/deepsite-badge.js"></script></body></html>
123456789101112131415161718192021// Document ready functiondocument.addEventListener('DOMContentLoaded', function() { // Add any JavaScript functionality here console.log('Excel Code Wizard is ready!'); // Example: Copy code to clipboard const copyButtons = document.querySelectorAll('.copy-btn'); copyButtons.forEach(button => { button.addEventListener('click', () => { const codeBlock = button.parentElement.querySelector('code'); navigator.clipboard.writeText(codeBlock.textContent) .then(() => { const originalText = button.textContent; button.textContent = 'Copied!'; setTimeout(() => { button.textContent = originalText; }, 2000); }); }); });});12345678910111213141516171819202122232425262728body {padding: 2rem;font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;}h1 {font-size: 16px;margin-top: 0;}p {color: rgb(107, 114, 128);font-size: 15px;margin-bottom: 10px;margin-top: 5px;}.card {max-width: 620px;margin: 0 auto;padding: 16px;border: 1px solid lightgray;border-radius: 16px;}.card p:last-child {margin-bottom: 0;}1234567891011121314151617181920212223242526272829303132333435/* Custom styles that can't be achieved with Tailwind */pre {font-family: 'Courier New', Courier, monospace;line-height: 1.5;tab-size: 4;}kbd {font-family: 'Courier New', Courier, monospace;font-size: 0.9em;}/* Smooth scroll behavior */html {scroll-behavior: smooth;}/* Custom scrollbar */::-webkit-scrollbar {width: 8px;height: 8px;}::-webkit-scrollbar-track {background: #f1f1f1;}::-webkit-scrollbar-thumb {background: #888;border-radius: 4px;}::-webkit-scrollbar-thumb:hover {background: #555;}
README.md+8-5
index.html+121-19
script.jsAdded+21
style.css+26-19