Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Code Snippet - Activate VBE window

Hi

Can someone supply a neater way to actrivate the VB window using a
macro,please?

I used the code below but I think there must be something better:
ThisWorkbook.VBProject.VBE.MainWindow.SetFocus

Thanks

Tim



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default Code Snippet - Activate VBE window

On Nov 9, 12:58*pm, "Tim Childs" wrote:
Hi

Can someone supply a neater way to actrivate the VB window using a
macro,please?

I used the code below but I think there must be something better:
ThisWorkbook.VBProject.VBE.MainWindow.SetFocus

Thanks

Tim


Why not just use the icon from the viewtoolbarsvisual basic
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Code Snippet - Activate VBE window

hi

thanks hor that but the reason i because I wanted it was to incorporate it
into a proc that needs to run in the VB window to work properly...

Tim

"Don Guillett Excel MVP" wrote in message
...
On Nov 9, 12:58 pm, "Tim Childs" wrote:
Hi

Can someone supply a neater way to actrivate the VB window using a
macro,please?

I used the code below but I think there must be something better:
ThisWorkbook.VBProject.VBE.MainWindow.SetFocus

Thanks

Tim


Why not just use the icon from the viewtoolbarsvisual basic



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default Code Snippet - Activate VBE window

On Nov 10, 1:23*am, "Tim Childs" wrote:
hi

thanks hor that but the reason i because I wanted it was to incorporate it
into a proc that needs to run in the VB window to work properly...

Tim

"Don Guillett Excel MVP" wrote in ...
On Nov 9, 12:58 pm, "Tim Childs" wrote:

Hi


Can someone supply a neater way to actrivate the VB window using a
macro,please?


I used the code below but I think there must be something better:
ThisWorkbook.VBProject.VBE.MainWindow.SetFocus


Thanks


Tim


Why not just use the icon from the viewtoolbarsvisual basic


Sub GotoVBE()
Application.VBE.MainWindow.Visible = True
End Sub
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Code Snippet - Activate VBE window

Hi Don

thanks for sending that - will deploy in the proc.

bw

Tim

"Don Guillett Excel MVP" wrote in message
...
On Nov 10, 1:23 am, "Tim Childs" wrote:
hi

thanks hor that but the reason i because I wanted it was to incorporate it
into a proc that needs to run in the VB window to work properly...

Tim

"Don Guillett Excel MVP" wrote in
...
On Nov 9, 12:58 pm, "Tim Childs" wrote:

Hi


Can someone supply a neater way to actrivate the VB window using a
macro,please?


I used the code below but I think there must be something better:
ThisWorkbook.VBProject.VBE.MainWindow.SetFocus


Thanks


Tim


Why not just use the icon from the viewtoolbarsvisual basic


Sub GotoVBE()
Application.VBE.MainWindow.Visible = True
End Sub

__________ Information from ESET Smart Security, version of virus signature
database 5608 (20101110) __________

The message was checked by ESET Smart Security.

http://www.eset.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
Want to modify this VBA code snippet joel Excel Programming 1 April 8th 09 08:46 PM
Want to modify this VBA code snippet Sam Commar Excel Programming 1 April 5th 09 01:50 PM
Workbook.Activate / Window.Activate problem Tim[_44_] Excel Programming 3 February 3rd 06 11:38 PM
Problem in WITH/END WITH code snippet [email protected] Excel Programming 2 January 21st 06 02:59 PM
Code snippet storage Ken McLennan[_3_] Excel Programming 9 August 20th 04 03:25 PM


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