Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default VB EXCEL INSERTING COLUMNS

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

This inserts like 5 columns, why is that? Worked fine a few times in a long
macro, but now not so much. Help! I have searhced and searched.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default VB EXCEL INSERTING COLUMNS

Try manually selection column M and see if there are any merged cells that
are selected.

"moosedog2000" wrote:

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

This inserts like 5 columns, why is that? Worked fine a few times in a long
macro, but now not so much. Help! I have searhced and searched.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default VB EXCEL INSERTING COLUMNS

thank you, you are correct, I open another worksheet to do my vlookup and
there are in fact merged cells there, good call.

"Barb Reinhardt" wrote:

Try manually selection column M and see if there are any merged cells that
are selected.

"moosedog2000" wrote:

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

This inserts like 5 columns, why is that? Worked fine a few times in a long
macro, but now not so much. Help! I have searhced and searched.

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
inserting new columns CJ Excel Discussion (Misc queries) 5 September 16th 06 07:18 PM
Inserting columns into a row park Excel Discussion (Misc queries) 1 August 2nd 05 10:09 PM
inserting columns within certain rows only crimsonkng Excel Discussion (Misc queries) 4 July 14th 05 05:13 PM
Pivot tables - inserting columns Scott Excel Worksheet Functions 1 March 19th 05 01:07 AM
Inserting Columns GJB Excel Worksheet Functions 1 January 20th 05 03:41 AM


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