Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Select current region less one column

Hi all,

I have data in my sheet1 in column F thru F (starting
from row 3, row 2 being column heading.

I want to print various reports based on aurofilter
crieteria of column A. since my column A item have been
added to page header i want to print the selection
starting from column B thru F

How can do useing macro?

TIA
Soniya
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Select current region less one column

From HELP indec for currentregion

Sub currentregionlesstoprow()'ROW
'Range("b1").CurrentRegion.Select
Set tbl = ActiveCell.CurrentRegion
tbl.Offset(1, 0).Resize(tbl.Rows.Count - 1, _
tbl.Columns.Count).Select
End Sub
======
'modified
Sub currentregionlessleftcolumn()'COLUMN
Set tbl = ActiveCell.CurrentRegion
tbl.Offset(0, 1).Resize(tbl.Rows.Count, _
tbl.Columns.Count - 1).Select
End Sub


--
Don Guillett
SalesAid Software

"Soniya" wrote in message
...
Hi all,

I have data in my sheet1 in column F thru F (starting
from row 3, row 2 being column heading.

I want to print various reports based on aurofilter
crieteria of column A. since my column A item have been
added to page header i want to print the selection
starting from column B thru F

How can do useing macro?

TIA
Soniya



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
Current region emulation daverau Excel Worksheet Functions 5 October 16th 09 04:31 AM
Sort doesn't recognize current region RobWN Excel Worksheet Functions 2 September 7th 07 10:48 PM
Copy Current Region Rohit Thomas[_2_] Excel Programming 1 December 4th 03 01:55 AM
Naming Current Region Gavin[_4_] Excel Programming 3 October 14th 03 03:38 PM


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