Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default exclude a column

Doe someone know how to select an entire row but it should exclude the
cel in that row of column A?

(the application first goes to a reference and then inserts an entire
new row, but the cel in row A may never be edited)

Bernd

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default exclude a column

Hi Bernd,

'-----------------
Doe someone know how to select an entire row but it should exclude the
cel in that row of column A?

(the application first goes to a reference and then inserts an entire
new row, but the cel in row A may never be edited)
'-----------------

Perhaps try something like:

'=============
Public Sub Tester()
Dim Rng As Range

Set Rng = Range("B5").Resize(1, Columns.Count - 1)

MsgBox Rng.Address(0, 0)

End Sub
'<<=============


---
Regards,
Norman


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default exclude a column

After copy paste my excel crashes....

I've worked out the solution another way.

Thanks for your comment.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default exclude a column

Hi Bernd,

After copy paste my excel crashes....


Your reference to a copy / paste operation is not clear.

Howver there is nothing in my suggested code:

Dim Rng As Range


Set Rng = Range("B5").Resize(1, Columns.Count - 1)


MsgBox Rng.Address(0, 0)


which I would expect to provoke a crash.


---
Regards,
Norman


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
Add numbers in a column, but exclude percentages in the same colum Rich W. Excel Worksheet Functions 3 July 9th 08 04:46 PM
Max Value in a column exclude selection - Excel VBA magix Excel Discussion (Misc queries) 3 November 5th 05 09:18 PM
I want to sum a column and exclude those ending with cr cbanks Excel Worksheet Functions 5 October 5th 05 02:58 PM
Need a formula that sums a column but could exclude some cells Watercolor artist Excel Worksheet Functions 4 August 4th 05 10:03 AM
Exclude a column from a table calculation Metallo[_3_] Excel Programming 3 July 1st 04 11:54 AM


All times are GMT +1. The time now is 01:14 AM.

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"