Operating System - Microsoft
1748148
Members
3865
Online
108758
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2001 02:55 AM
02-13-2001 02:55 AM
VBA Help
Hi all,
I is new here and a complete PC thicky so take it easy ;)
I need a Excel 97 macro that moves down 26 rows, hightlights the next 6 rows and deletes them, then moves down 26 rows, highlights next 6 rows and deletes them. Loops until a blank in column 1?
Any help?
This is my shamblee effort:
Sub ad800_ind()
'
' ad800_ind Macro
Workbooks.OpenText FileName:="J:\GLOBCUST\UTA\AD800.txt", Origin:=xlWindows _
, StartRow:=1, DataType:=xlFixedWidth, FieldInfo:=Array(0, 1)
Rows("1:35").Select
Selection.Delete Shift:=xlUp
y = 1
Do Until Cells(y, 1) = ""
'Rows("y:y+5").Select
Selection.Delete Shift:=x1up
y = y + 26
Loop
End Sub
Help please
Thankyou :)
I is new here and a complete PC thicky so take it easy ;)
I need a Excel 97 macro that moves down 26 rows, hightlights the next 6 rows and deletes them, then moves down 26 rows, highlights next 6 rows and deletes them. Loops until a blank in column 1?
Any help?
This is my shamblee effort:
Sub ad800_ind()
'
' ad800_ind Macro
Workbooks.OpenText FileName:="J:\GLOBCUST\UTA\AD800.txt", Origin:=xlWindows _
, StartRow:=1, DataType:=xlFixedWidth, FieldInfo:=Array(0, 1)
Rows("1:35").Select
Selection.Delete Shift:=xlUp
y = 1
Do Until Cells(y, 1) = ""
'Rows("y:y+5").Select
Selection.Delete Shift:=x1up
y = y + 26
Loop
End Sub
Help please
Thankyou :)
I just lub dem Jubblies :)
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 05:36 AM
02-14-2001 05:36 AM
Re: VBA Help
Attached is a VB program I use for tracking volume sizes.
A couple things to keep in mind:
1. Create a new excel application with
Set oExcel = New Excel.Application
2. Tell VB the location of the spread sheet
Set oBook = oExcel.Workbooks.Open _
("C:\daily_checks\" + strYear + "\"+ strMonth + "\" + _
strMonth + strYear + ".xls")
3. Set an active sheet.
Set oSheet = oExcel.ActiveSheet
4. If you create a macro to do what you are trying to do, then go in a edit the macro, you should be able to get a basic understanding of the commands you need to execute to accomplish this.
Hope this helps
A couple things to keep in mind:
1. Create a new excel application with
Set oExcel = New Excel.Application
2. Tell VB the location of the spread sheet
Set oBook = oExcel.Workbooks.Open _
("C:\daily_checks\" + strYear + "\"+ strMonth + "\" + _
strMonth + strYear + ".xls")
3. Set an active sheet.
Set oSheet = oExcel.ActiveSheet
4. If you create a macro to do what you are trying to do, then go in a edit the macro, you should be able to get a basic understanding of the commands you need to execute to accomplish this.
Hope this helps
life's a journey, not a destination
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP