Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA TextBox problem

I have a problem with creating a textbox with vba macro. The actua
creating isn't a problem but I need to Link a spesific cell as well
And that is giving me some hard time.

Below is the code that I have recorded and below that is the code
have written based on the recording. I would also have define th
backcolor of the textbox when it is created.


ActiveSheet.OLEObjects.Add(ClassType:="Forms.TextB ox.1", Link:=False
Left:=100, Top:=97, Width:=168, Height:=33).Select

ActiveSheet.OLEObjects.Add(ClassType:="Forms.TextB ox.1"
Link:=Range("G7"), Left:=100, Top:=97, Width:=168, Height:=33).Select

It does't give any error messages, but the cell isn't linked to th
textbox either.

Thank you for your responses

--
Message posted from http://www.ExcelForum.com

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
Problem with TAB key and Textbox controls Paul M[_4_] Excel Programming 2 June 6th 14 05:54 PM
Textbox problem Robert Couchman[_4_] Excel Programming 11 February 26th 04 02:01 PM
Excel VBA - Userform Checkbox/Textbox Problem Thunder5 Excel Programming 1 February 16th 04 02:06 PM
TextBox SetFocus Problem Tom Ogilvy Excel Programming 1 September 12th 03 01:27 PM
Excel textbox problem numcrun Excel Programming 0 July 16th 03 10:05 AM


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