Sending data to excel

M

mickey

From Access 2000 I am able to programmatically add a label
to an excel sheet using the following:

Set myLabel = myDocument.Shapes.AddFormControl(xlLabel,
100, 150, 200, 50)

But, I can't figure out how to send text (caption) to the
label. Any help greatly appreciated.

Thanks!
 
G

Graham Mandeno

Hello Mickey

I don't know if there is a more direct method, but you can use the Selection
object:

myLabel.Select
Selection.Characters.Text = "Hello World!"
 
G

Graham Mandeno

You *do* recall correctly, John! Thanks - the TextFrame object somehow
passed me by :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top