LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selecting single column with merged cell at top

Hello,

I'm having a bit of a problem in my macro with something that should be
very simple. Namely, I'm trying to select a column.

I need to insert a column at Column N. My script is as follows:


Columns("N:N").Select
Selection.Insert Shift:=xlToRight


The problem appears to be that I have a cell (which contains a title)
that is merged across several columns on my worksheet, in particular,
Range("N:S").

So, whenever my macro runs, it always selects the whole Range("N:S")
instead of just Column N. Does anyone know how I may work around this?
When I do this manually, I can select Column N alone and not the whole
range across which the topmost cell is merged.

Any ideas greatly appreciated!


-Paul



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

 
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
Excel 2007 single cell selecting muliple cell Submit2s Excel Worksheet Functions 1 February 12th 09 04:52 PM
Formula from a single cell to a merged cell Rodders Excel Discussion (Misc queries) 4 July 29th 08 06:41 AM
Very Basic Problem - Merged Cell Equals Contents of a Single Cell jollynicechap Excel Worksheet Functions 3 December 29th 06 08:16 PM
How to copy single cell into cell that is merged from two cells? Rod Excel Discussion (Misc queries) 3 January 22nd 06 09:24 PM
Formula to transfer text from merged cells to single cell? rosey1 Excel Discussion (Misc queries) 2 October 11th 05 03:10 PM


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