Answered by:
GetObject and CreateObject in VS2010

Question
-
What is the 2010 equivalent of getObject and CreateObject.
On http://msdn.microsoft.com/en-us/library/7t9k08y5(v=vs.90).aspx
and
http://msdn.microsoft.com/en-us/library/e9waz863(VS.71).aspx
The latest version is VS2008.
- Moved by Quist Zhang Wednesday, July 11, 2012 7:18 AM (From:Visual Studio Tools for Office)
Tuesday, July 10, 2012 7:58 PM
Answers
-
Hi ytsheng,
Thanks for you post.
I have no idea about what 2010 means.
As far as I know, there is no VS2010 version article for this function. But you can use this function in VS2010 well.
If you mean office2010, there is a function has the same name which you can use it in VBA. For more information, please check this link: http://msdn.microsoft.com/en-us/library/gg264813.aspx
Hope this helps.
Mark Liu-lxf [MSFT]
MSDN Community Support | Feedback to us
- Proposed as answer by Armin Zingler Wednesday, July 11, 2012 10:13 AM
- Marked as answer by Mark Liu-lxfModerator Tuesday, July 24, 2012 5:12 AM
Wednesday, July 11, 2012 7:26 AMModerator -
Hi ytsheng,
- CreateObject
- GetObject
'
still exist in the 2010 editions as I just checked in the Visual Basic 2010 Express Edition.
Please note what Intellisense is showing you too regarding COM objects.
>>
'
You keep on asking the same sort of question such as
"What is the 2010 equivalent of...."
Just because you can not find any online documentation, does not mean they do not exist.
'
You have a similar question here.>>
Please assume that everything you can not find documentation for is very likely to be in ALL
of the 2010 versions ie;
- Visual Basic 2010 Express Edition ( as well as the other Express Editions )
- Visual Studio 2010 ( all versions )
'
Microsoft, as far as I know, have not removed any features in creating a later version of the .Net programming languages.
'
Regards,
Click this link to see the NEW way of how to insert a picture into a forum post.
Installing VB6 on Windows 7
App Hub for Windows Phone & XBOX 360 developers.- Edited by John Anthony Oliver Wednesday, July 11, 2012 10:46 AM
- Marked as answer by Mark Liu-lxfModerator Tuesday, July 24, 2012 5:12 AM
Wednesday, July 11, 2012 10:26 AM -
In addition to the to other helpful replies, you can always do a symbol search (via hotkey or menu). The object browser also shows what's available.
Armin
- Marked as answer by Mark Liu-lxfModerator Tuesday, July 24, 2012 5:12 AM
Wednesday, July 11, 2012 11:21 AM
All replies
-
What is the 2010 equivalent of getObject and CreateObject.
On http://msdn.microsoft.com/en-us/library/7t9k08y5(v=vs.90).aspx
and
http://msdn.microsoft.com/en-us/library/e9waz863(VS.71).aspx
The latest version is VS2008.
- Merged by Quist Zhang Wednesday, July 11, 2012 2:30 AM
Tuesday, July 10, 2012 8:00 PM -
Hi Ytsheng,
According to your description, I'd like to move this thread to Visual Basic Language Forum for better support.
Thanks for your understanding.
Best regards,
QuistQuist Zhang [MSFT]
MSDN Community Support | Feedback to us
Wednesday, July 11, 2012 7:20 AM -
Hi ytsheng,
Thanks for you post.
I have no idea about what 2010 means.
As far as I know, there is no VS2010 version article for this function. But you can use this function in VS2010 well.
If you mean office2010, there is a function has the same name which you can use it in VBA. For more information, please check this link: http://msdn.microsoft.com/en-us/library/gg264813.aspx
Hope this helps.
Mark Liu-lxf [MSFT]
MSDN Community Support | Feedback to us
- Proposed as answer by Armin Zingler Wednesday, July 11, 2012 10:13 AM
- Marked as answer by Mark Liu-lxfModerator Tuesday, July 24, 2012 5:12 AM
Wednesday, July 11, 2012 7:26 AMModerator -
Hi ytsheng,
- CreateObject
- GetObject
'
still exist in the 2010 editions as I just checked in the Visual Basic 2010 Express Edition.
Please note what Intellisense is showing you too regarding COM objects.
>>
'
You keep on asking the same sort of question such as
"What is the 2010 equivalent of...."
Just because you can not find any online documentation, does not mean they do not exist.
'
You have a similar question here.>>
Please assume that everything you can not find documentation for is very likely to be in ALL
of the 2010 versions ie;
- Visual Basic 2010 Express Edition ( as well as the other Express Editions )
- Visual Studio 2010 ( all versions )
'
Microsoft, as far as I know, have not removed any features in creating a later version of the .Net programming languages.
'
Regards,
Click this link to see the NEW way of how to insert a picture into a forum post.
Installing VB6 on Windows 7
App Hub for Windows Phone & XBOX 360 developers.- Edited by John Anthony Oliver Wednesday, July 11, 2012 10:46 AM
- Marked as answer by Mark Liu-lxfModerator Tuesday, July 24, 2012 5:12 AM
Wednesday, July 11, 2012 10:26 AM -
In addition to the to other helpful replies, you can always do a symbol search (via hotkey or menu). The object browser also shows what's available.
Armin
- Marked as answer by Mark Liu-lxfModerator Tuesday, July 24, 2012 5:12 AM
Wednesday, July 11, 2012 11:21 AM