• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

Creating a excel workbook in memory

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
shellyp
Asked:
shellyp
  • 2
1 Solution
 
EDDYKTCommented:
can you just use automation?
0
 
ChenChenCommented:


dim xlwb as workbook
dim xlwsh as worksheet

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

'then populate data into xlwsh
0
 
ChenChenCommented:
Hi Shelly,

Had a mistake in my previous comment,

it should be :

set xlwb=application.workbooks.add

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now