Solved

Creating a excel workbook in memory

Posted on 2004-09-01
3
239 Views
Last Modified: 2010-05-02
Hi,

Does anyone know how to create a workbook in memory for VBA?  Basically, I want populate a feed of data onto an excel workbook.  

Thanks,
Shelly
0
Comment
Question by:shellyp
  • 2
3 Comments
 
LVL 26

Expert Comment

by:EDDYKT
ID: 11958520
can you just use automation?
0
 
LVL 4

Expert Comment

by:ChenChen
ID: 11959503


dim xlwb as workbook
dim xlwsh as worksheet

set xlwsh =application.workbooks.add
set xlwsh=xlwb.worksheets.add

'then populate data into xlwsh
0
 
LVL 4

Accepted Solution

by:
ChenChen earned 500 total points
ID: 11959519
Hi Shelly,

Had a mistake in my previous comment,

it should be :

set xlwb=application.workbooks.add

0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Share codes 68 115
Mysql vs Oracle 10 120
vba find the last empty column 10 81
VB error "Type mismatch" 2 43
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now