LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default What references do I need to program a Textbox and an Image?

Hi Chip P.

The code I have is very simple. The main problem is that I need to rewrite
it: I need to insert a textbox in Excel. Then I need to move the text of cell
A4 to the textbox.

The problem is that when I record the macro, it doesn't record anything
about the textbox. I inserted a textbox, I changed the text in it, I changed
its position... but it only recorded:

Sub Macro1()
'Macro1 Macro

Range("A4").Select
End Sub

I don't know what to do! The macro I have is for Word and it works fine, but
in Excel I just don't know how to do the same:

Sub Macro1()

' Macro1 Macro

ActiveDocument.Shapes("Text Box 2").Select
ActiveDocument.AttachedTemplate.BuildingBlockEntri es( _
" Simple textbox").Insert Whe=Selection.Range, RichText:=True
Selection.TypeText Text:="My example"

End Sub

Thanks a lot




"Chip Pearson" wrote:

What reference your code may need depending entirely on what calls the
makes to what libraries. You have all the core libraries already. Post
a section of code that fails.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Tue, 15 Sep 2009 09:39:02 -0700, Jose Manuel
wrote:

Hi! I recently update to Excel 2007. I have some macros that I need to run,
but they do not work because I cannot find the references I need! I need to
do some things with an image and some textboxes, but the macro doesn't work!

I have selected the following:

- VBA for applications
- MS Excel 12 Object Library
- MS Graph 12 Object Library
- OLE Automation
- MS Office 12 Object Library
- MS Office Control 1.0 Type Library

What referencies do I need!?

Thanks a lot!

Manuel H.


 
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
VBA: Adding contents of a cell to a chart as a textbox (or image, CaroKann Excel Programming 5 October 2nd 08 06:40 PM
Text in TextBox to Program Gordon[_15_] Excel Programming 1 December 21st 06 01:37 AM
Display an Image in it's associated program CB Hamlyn Excel Programming 2 February 15th 05 02:28 PM
Excel references in another program Tom Ogilvy Excel Programming 0 September 9th 03 04:53 AM
Excel references in another program JohnI in Brisbane Excel Programming 0 September 9th 03 03:30 AM


All times are GMT +1. The time now is 01:55 AM.

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

About Us

"It's about Microsoft Excel"