Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Problem with Cells Selection through macro.

Hello There,

I want to select a coloumn say A, through macro in a worksheet where from A
to O some 300 rows are merged.

Now when i use Column("A:A").Select it selects all the column from A to O
how can i select only "A:A"

Regards
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Problem with Cells Selection through macro.

If they are merged then you cannot. Effectively you only have one cell!
You could un-merge them select and re-merge, but I am not sure what that
delivers? Since any values placed in A will then appear in the new cell A:O
when re-merged.

--
Cheers
Nigel



"Rahul Gupta" wrote in message
...
Hello There,

I want to select a coloumn say A, through macro in a worksheet where from
A
to O some 300 rows are merged.

Now when i use Column("A:A").Select it selects all the column from A to O
how can i select only "A:A"

Regards



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Problem with Cells Selection through macro.

As much as I don't like to use merge cells, you may find that if you upgrade,
the newer versions of excel handle merged cells better.

If I remember correctly, the behavior you described occurred in xl97.

Not much of a workaround, huh?

Rahul Gupta wrote:

Hello There,

I want to select a coloumn say A, through macro in a worksheet where from A
to O some 300 rows are merged.

Now when i use Column("A:A").Select it selects all the column from A to O
how can i select only "A:A"

Regards


--

Dave Peterson
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
Macro to include more cells for selection to print Driftwood Excel Discussion (Misc queries) 2 November 19th 08 08:54 PM
Macro to select cells and then new selection from selected cells Rewop Eilsel Excel Programming 0 June 6th 06 04:25 PM
Text selection macro problem djstriker91 Excel Programming 0 July 6th 05 09:49 AM
How do I print a selection of cells using a macro? gussuffert Excel Programming 3 April 4th 05 09:07 PM
problem with selection when calling macro externally from VB6 [email protected] Excel Programming 1 November 4th 03 08:17 PM


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