![]() |
|
|||||||
| ASP & VBScript Forum Need help from a webmaster with ASP or VBScript, you may ask in this forum? |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi All,
I need a VB script for the following scenario. I have a spread sheet, which has 10 tabs and each tab has 10 columns. The script should have the ability to generate the data on to the XL sheet, for example 1 in Column A , 2 in column B, 3 in column C and so on. in all 10 tabs. How can achive this using VB script? Thanks in Advance. Nandu |
|
This ad is part of our Revenue Sharing program |
|
|||
|
You will need to create an Excel object
From there you can create workbooks, add worksheets, insert data etc. Here is a brief example: set oe = createobject("Excel.Application") oe.visible = true set wb = oe.workbooks.add set ws = wb.worksheets(1) ws.range("A1").value = "Hello World" ws.name = "Hi There" If you are ever wondering how to code something in Excel just record a macro while you do whatever you were trying to do with code manually. Then look at the code generated by the Excel Macro. Often times this helps in a big way. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pulling data from one excel book to another??? | jedcomyn | ASP & VBScript Forum | 2 | 02-12-2008 01:25 PM |
| How can I copy data from a html table? | bomba | JavaScript & AJAX Forum | 0 | 02-08-2008 10:56 AM |
| Error 3265 VBscript editor Data Access Page | 8cats | ASP & VBScript Forum | 8 | 10-17-2007 04:10 PM |
| Example of Inserting and Retrieving data from xml file | hanusoft | Web Developers & Development Software | 0 | 10-01-2007 06:26 AM |
| Generate a username | a_lane | ASP & VBScript Forum | 1 | 08-28-2007 03:15 AM |