Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default Changing textbox properties from Access VBA


I have code in an Access VBA module that creates a workbook in Excel. I
am trying to create and manipulate an Excel textbox. I am able to
create the textbox, and place text in it, but how can I change the
background color? This doesnt work:

With .ActiveSheet.Shapes("Text Box 2")
.ShapeRange.Fill.ForeColor.SchemeColor = 39
End With

This also does does not work:
.ActiveSheet.Shapes("Text Box 2").Select
objExcel.Selection.ShapeRange.Fill.ForeColor.Schem eColor = 20

However, this *does* work:
With .ActiveSheet.Shapes("Text Box 2").TextFrame
.Characters.Text = "My Text"
End With

note: objExcel is an Excel.Application object
by the way, for no apparent reason in this post, there is incorrectly a
space showing up in "SchemeColor", but thats not my code




--
justme0010
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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
Bind a textbox to Access data Geo R Excel Discussion (Misc queries) 0 January 16th 08 04:45 PM
Returning Access Table properties to Excel James[_3_] New Users to Excel 2 May 28th 07 01:13 PM
Cell changing it's properties jtpeters New Users to Excel 0 December 27th 05 10:09 PM
What do i enter in the server textbox to access olap? blogsprite Excel Discussion (Misc queries) 0 May 18th 05 09:18 AM
How can I access/display File -> properties in a cell Denny Excel Discussion (Misc queries) 1 March 4th 05 02:22 PM


All times are GMT +1. The time now is 05:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"