Webmaster Forum

Go Back   Webmaster Forum > Scripting/Programming & Debugging > ASP & VBScript Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

ASP & VBScript Forum Need help from a webmaster with ASP or VBScript, you may ask in this forum?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2008, 12:50 AM
nandu_rao321 nandu_rao321 is offline
Junior Member
 
Join Date: Jul 2008
Posts: 1
nandu_rao321 is an unknown quantity at this point
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
Default Generate the data on Spread sheet using VB script.

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
Reply With Quote

This ad is part of our Revenue Sharing program
  #2 (permalink)  
Old 07-06-2008, 02:40 AM
pflunk pflunk is offline
Junior Member
 
Join Date: Jul 2008
Location: Houston, TX
Posts: 6
pflunk is an unknown quantity at this point
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
Default

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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT. The time now is 04:42 AM.


Creative Commons License
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30