Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Text paragraphs and image

Hello,

I have an Excel 97 sheet which has an image.

How can I use VBA to write text over the image? I guess I have to add a
text box first but don't know how to do it.

Can I do that? Is it possible to write several paragraphs and indent the
first one?

Thanks,
Mika

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default Text paragraphs and image

This is an adjustment of something that I did with the macro recorder. I
don't think that the text boxes allow for indented paragraphs, but you can
have line breaks.

Sub Macro1()

Range("a1").Select
ActiveSheet.Pictures.Insert("C:\A picture.jpg").Select
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHo rizontal, 224.25, 118.5, _
201#, 108.75).Select
With Selection
.Characters.Text = "Text" & Chr(10) & "whatever"
.ShapeRange.Fill.Visible = msoFalse
.ShapeRange.Line.Visible = msoFalse
End With

End Sub

Robin Hammond
www.enhanceddatasystems.com
Check out our XspandXL add-in


"Mika" wrote in message
...
Hello,

I have an Excel 97 sheet which has an image.

How can I use VBA to write text over the image? I guess I have to add a
text box first but don't know how to do it.

Can I do that? Is it possible to write several paragraphs and indent the
first one?

Thanks,
Mika



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
Customize the QAT with text rather than image I Teach Excel Discussion (Misc queries) 1 December 1st 09 01:25 PM
How Do I Replace Paragraphs With New Paragraphs In Excel? vselin1 Excel Discussion (Misc queries) 7 July 29th 09 04:21 PM
Image as text Emece Excel Discussion (Misc queries) 1 February 26th 09 01:44 PM
formating text cell paragraphs roypea Excel Discussion (Misc queries) 1 January 30th 08 06:03 PM
How can I put an image behind text in excel? Sara Gilbert Excel Discussion (Misc queries) 2 November 9th 05 08:52 PM


All times are GMT +1. The time now is 08:51 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"