#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 126
Default VB 6

Hello

Everyone says do it on VB 6 instead of VBA. I like to try. Can someone help
me to start? All I want now is to select cells(1,1) in an Excel workbook
through VB 2008 Express edition. I have given below the VBA equivalents.

Opening an Excel file.

Opening Visual Basic Editor

Inserting a module.

Write the following in it;
Sub Testing ()
Workbooks("Book1").cells(1,1).select
End Sub

Running Testing.

Thank You

Varne M

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default VB 6

Code written for VB6 will more than likely not run in VB2008 (part of
Microsoft's .NET world). When Microsoft introduced VB2008, they broke
backward compatibility with the "classic" line of VB. There are things you
are supposed to be able to do to make some VB6 code run inside VB2008, but
not being a .NET programmer, I am not able to tell you how to proceed. You
could ask in one of the .NET newsgroups (they all have "dotnet" in their
names), such as this one...

microsoft.public.dotnet.languages.vb

Rick


"Varne" wrote in message
...
Hello

Everyone says do it on VB 6 instead of VBA. I like to try. Can someone
help
me to start? All I want now is to select cells(1,1) in an Excel workbook
through VB 2008 Express edition. I have given below the VBA equivalents.

Opening an Excel file.

Opening Visual Basic Editor

Inserting a module.

Write the following in it;
Sub Testing ()
Workbooks("Book1").cells(1,1).select
End Sub

Running Testing.

Thank You

Varne M


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 126
Default VB 6

Hello Rick

Sorry for replying late. I have just downloaded a version of VB 6 compiler.
Could you just show me how to do the following;

Sub Testing ()
Workbooks("Book1").cells(1,1).select
End Sub

Thank You
M Varnendra

"Rick Rothstein (MVP - VB)" wrote:

Code written for VB6 will more than likely not run in VB2008 (part of
Microsoft's .NET world). When Microsoft introduced VB2008, they broke
backward compatibility with the "classic" line of VB. There are things you
are supposed to be able to do to make some VB6 code run inside VB2008, but
not being a .NET programmer, I am not able to tell you how to proceed. You
could ask in one of the .NET newsgroups (they all have "dotnet" in their
names), such as this one...

microsoft.public.dotnet.languages.vb

Rick


"Varne" wrote in message
...
Hello

Everyone says do it on VB 6 instead of VBA. I like to try. Can someone
help
me to start? All I want now is to select cells(1,1) in an Excel workbook
through VB 2008 Express edition. I have given below the VBA equivalents.

Opening an Excel file.

Opening Visual Basic Editor

Inserting a module.

Write the following in it;
Sub Testing ()
Workbooks("Book1").cells(1,1).select
End Sub

Running Testing.

Thank You

Varne M



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default VB 6

Try this

Sub Testing()
Workbooks("Book1.xls").Activate
Cells(1, 1).Select
End Sub

"Varne" wrote in message
...
Hello Rick

Sorry for replying late. I have just downloaded a version of VB 6
compiler.
Could you just show me how to do the following;

Sub Testing ()
Workbooks("Book1").cells(1,1).select
End Sub

Thank You
M Varnendra

"Rick Rothstein (MVP - VB)" wrote:

Code written for VB6 will more than likely not run in VB2008 (part of
Microsoft's .NET world). When Microsoft introduced VB2008, they broke
backward compatibility with the "classic" line of VB. There are things
you
are supposed to be able to do to make some VB6 code run inside VB2008,
but
not being a .NET programmer, I am not able to tell you how to proceed.
You
could ask in one of the .NET newsgroups (they all have "dotnet" in their
names), such as this one...

microsoft.public.dotnet.languages.vb

Rick


"Varne" wrote in message
...
Hello

Everyone says do it on VB 6 instead of VBA. I like to try. Can someone
help
me to start? All I want now is to select cells(1,1) in an Excel
workbook
through VB 2008 Express edition. I have given below the VBA
equivalents.

Opening an Excel file.

Opening Visual Basic Editor

Inserting a module.

Write the following in it;
Sub Testing ()
Workbooks("Book1").cells(1,1).select
End Sub

Running Testing.

Thank You

Varne M





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 126
Default VB 6

Hello Lashio

Could you please tell me how to access the VB 6 code writing space? For VBA
I open an Excel workbook and go to the space through Visua Basic Editor and
then insert a public module and on there I write my codes? Sorry this is the
first time I am going to try VB 6. Thank You.


Thank You

Varne M



"Lashio" wrote:

Try this

Sub Testing()
Workbooks("Book1.xls").Activate
Cells(1, 1).Select
End Sub

"Varne" wrote in message
...
Hello Rick

Sorry for replying late. I have just downloaded a version of VB 6
compiler.
Could you just show me how to do the following;

Sub Testing ()
Workbooks("Book1").cells(1,1).select
End Sub

Thank You
M Varnendra

"Rick Rothstein (MVP - VB)" wrote:

Code written for VB6 will more than likely not run in VB2008 (part of
Microsoft's .NET world). When Microsoft introduced VB2008, they broke
backward compatibility with the "classic" line of VB. There are things
you
are supposed to be able to do to make some VB6 code run inside VB2008,
but
not being a .NET programmer, I am not able to tell you how to proceed.
You
could ask in one of the .NET newsgroups (they all have "dotnet" in their
names), such as this one...

microsoft.public.dotnet.languages.vb

Rick


"Varne" wrote in message
...
Hello

Everyone says do it on VB 6 instead of VBA. I like to try. Can someone
help
me to start? All I want now is to select cells(1,1) in an Excel
workbook
through VB 2008 Express edition. I have given below the VBA
equivalents.

Opening an Excel file.

Opening Visual Basic Editor

Inserting a module.

Write the following in it;
Sub Testing ()
Workbooks("Book1").cells(1,1).select
End Sub

Running Testing.

Thank You

Varne M






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



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