Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 5th, 2005, 07:53 AM
Authorized User
 
Join Date: Sep 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to highlight in Powerpoint

Hi all,

I want to highlight the found words in PowerPoint by using VB. Could anybody give me some ideas or examples?

Thanks in advance,
Haiying

 
Old April 5th, 2005, 11:31 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

What do you mean by "the found words?"


mmcdonal
 
Old April 6th, 2005, 02:22 AM
Authorized User
 
Join Date: Sep 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For example, I want to find all the words "test" in the ppt file, after finding them, all the "test" should be highlighted in this file.

Thanks,
Haiying

 
Old April 6th, 2005, 06:24 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

What sort of mechanism would you be using to find the word "test" in your ppt? Is that an input box, or the Find feature? And where would you invke it? At design time or run time?

mmcdonal
 
Old April 6th, 2005, 06:59 AM
Authorized User
 
Join Date: Sep 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use an input box to input the words which will be searched in a ppt file. when I click the START button. The ppt file should be open and the search results should be highlight automatically. Now I only can change the font color of the search results. I do not know if it is possible to highlight the search results in ppt file.

Many thanks,
Haiying

 
Old April 6th, 2005, 07:11 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

In your code to change the font color, you are probbly using ForeColor. Try using BackColor to highlight.

mmcdonal
 
Old April 6th, 2005, 08:04 AM
Authorized User
 
Join Date: Sep 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I used .Font.Color, I can not find BackColor property in vb for ppt. Could you please give more details?
many thanks
Haiying






Similar Threads
Thread Thread Starter Forum Replies Last Post
Powerpoint in HTML anukagni HTML Code Clinic 2 November 22nd, 2007 08:40 AM
Download to powerpoint vgvkarthik ASP.NET 1.0 and 1.1 Basics 1 May 8th, 2007 06:54 AM
powerpoint and c# dotnetprogrammer VS.NET 2002/2003 0 October 17th, 2005 05:06 AM
Powerpoint msgbox Xarg@xog Forum and Wrox.com Feedback 1 May 26th, 2005 05:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.