Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Test if entire row is selected

Hi NG

Is there any way to test in VBA if an entire row has been selected? I tried
with something like

If Selection.EntireRow = True

but that didnt do the job :-)

Jan

--
For den, der kun kender en hammer,
komme alle problemer hurtigt til at ligne søm.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Test if entire row is selected

if selection.address = selection.entirerow.address
or
if selection.address = activecell.entirerow.address
(if you wanted to check if it was a single row)

Jan Kronsell wrote:

Hi NG

Is there any way to test in VBA if an entire row has been selected? I tried
with something like

If Selection.EntireRow = True

but that didnt do the job :-)

Jan

--
For den, der kun kender en hammer,
komme alle problemer hurtigt til at ligne søm.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Test if entire row is selected

Thak you. That did it.

Jan

Dave Peterson wrote:
if selection.address = selection.entirerow.address
or
if selection.address = activecell.entirerow.address
(if you wanted to check if it was a single row)

Jan Kronsell wrote:

Hi NG

Is there any way to test in VBA if an entire row has been selected?
I tried with something like

If Selection.EntireRow = True

but that didnt do the job :-)

Jan

--
For den, der kun kender en hammer,
komme alle problemer hurtigt til at ligne sø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


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA how to check if entire row is selected? Jack Sons Excel Discussion (Misc queries) 6 April 23rd 23 09:00 PM
Simple Macro problem. How do I test the entire range Frank[_27_] Excel Programming 6 May 4th 07 03:54 PM
Test if cells are selected Lisa[_10_] Excel Programming 6 April 2nd 07 06:03 PM
delete entire row based on conditional test of column A guillermo.ht Excel Programming 2 January 22nd 07 03:49 AM
Is there a test to see if an entire row or column is empty? Henry Stock Excel Programming 3 February 25th 05 05:50 PM


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