473,398 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Another excel question

How do I convert this VBA script into VB.Net?

Rows("4:5").Select
Selection.Rows.group

I did take a look at the office 2003 sdk for excel at the group property but
that did not provide helpful information.

Any information is appreciated?

E-Cube
Nov 21 '05 #1
4 1262
I found that setting the Outlinelevel property appropiately would allow me to
mimic the functionality of the vba script I entered in my previous post.

"E-Cube" wrote:
How do I convert this VBA script into VB.Net?

Rows("4:5").Select
Selection.Rows.group

I did take a look at the office 2003 sdk for excel at the group property but
that did not provide helpful information.

Any information is appreciated?

E-Cube

Nov 21 '05 #2
> How do I convert this VBA script into VB.Net?

Rows("4:5").Select
Selection.Rows.group

I did take a look at the office 2003 sdk for excel at the group property
but
that did not provide helpful information.


How is this VB.NET program running? Is it been called from Excel or invoking
Excel itself?

Rob.
Nov 21 '05 #3
> How do I convert this VBA script into VB.Net?

Rows("4:5").Select
Selection.Rows.group

I did take a look at the office 2003 sdk for excel at the group property
but
that did not provide helpful information.


How is this VB.NET program running? Is it been called from Excel or invoking
Excel itself?

Rob.
Nov 21 '05 #4
Rob,

I have a reference to the excel.dll in vb.net.
I found that setting the outline level on the row Item to a certain value is
similar to the group method that is the vba script.

Thank you for any information
E-Cube

"Rob Nicholson" wrote:
How do I convert this VBA script into VB.Net?

Rows("4:5").Select
Selection.Rows.group

I did take a look at the office 2003 sdk for excel at the group property
but
that did not provide helpful information.


How is this VB.NET program running? Is it been called from Excel or invoking
Excel itself?

Rob.

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: It's me | last post by:
I followed the example in http://stompstompstomp.com/weblog/technical/2004-05-20 and learned that to add a new worksheet to an Excel workbook, you would use the workbook.Worksheets.Add() method. ...
6
by: Sam Johnson | last post by:
HI I tried to send the following SQL string to an open databse, to export a table into excel format: g.Connection = conn 'valid OleDBConnection and Command objects g.CommandText = "SELECT *...
2
by: Mad Scientist Jr | last post by:
>From an asp.net web page I want the user to open the results of a SQL query in Excel, as automatically as possible (ie not having to loop through columns, rows, in code). For this,...
4
by: Peter Afonin | last post by:
Hello, I have a form with several buttons, and I need to post this data to several different applications. In ASP.NET 1.1 it was quite easy - I just used HTML controls (text or hidden), then...
9
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso...
3
by: pleaseexplaintome_2 | last post by:
using the code below (some parts not included), I create a new excel workbook with spreadheets. I then want to delete a spreadsheet, but a reference remains open and excel stays in task manager...
3
by: akristensen | last post by:
I am new to this site, so be patient if I do not ask the question correctly. Current Target Platform: Browser: MS IE, script language: Javascript (will use VBScript, but JS is preferred), External...
2
by: patrick.waldo | last post by:
Hi all, Fairly new Python guy here. I am having a lot of trouble trying to figure this out. I have some data on some regulations in Excel and I need to basically add up the total regulations...
11
by: fniles | last post by:
One of our application uses VB6 and Access97 database. Another application uses VB.NET 2005. This morning for about 15 seconds when the application tries to read either a query or a table from the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.