Solved

Using VB in powerpoint

Posted on 2001-06-18
1
224 Views
Last Modified: 2010-05-18
I need to (within code in a powerpoint VB module) reference cells in an excel file.

What is the code that i need to do this?
Thanks

JS
0
Comment
Question by:jordo2798
1 Comment
 
LVL 2

Accepted Solution

by:
chandukb earned 100 total points
ID: 6203496
Yes, you can read data from xl.

reference excel object library in your project

Dim xl As Excel.Application

   If xl Is Nothing Then
       Set xl = CreateObject("Excel.Application")
       xl.DisplayAlerts = False
   End If

   xl.Workbooks.Open "your file name"
   xl.DisplayAlerts = True
   yourVariable = xl.sheets("sheet name").range("your column, row).value
   msgbox yourVariable
   Set xl = Nothing

Chandu


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 10 start screen issues 9 51
SLMGR Switches Are Not Working On KMS Host 3 63
VB6 - Convert HH:MM into Decimal 8 51
Child Form in front 4 35
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

929 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

13 Experts available now in Live!

Get 1:1 Help Now