class id error

K

KB

wondering why I keep getting a class id error with this code,

Set myControl = Me.MultiPage1.Pages.Add.Controls.Add("MSFORMS.TextBox.1", "MyBox", Visible)

--
K.Brown
/*****************************************************************************
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
******************************************************************************/
 
W

Word Heretic

G'day "KB" <[email protected]>,

You can't .Add.Something.Whatever

You must

Set aThing =yeahbaby.add
aThing.Something.Whatever


Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


KB reckoned:
 

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

Similar Threads

serial port communications 1
adding pictures to spreadsheet 1
excel and word 1
Best Practice for Re-Baseline 5
hiding workbooks 5
serial port or messaging 0
ColorIndex 5
adding picture to worksheet 1

Top