ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Recorded single column insert in macro. Macro inserts two not one (https://www.excelbanter.com/excel-programming/395599-recorded-single-column-insert-macro-macro-inserts-two-not-one.html)

lostatlewisu

Recorded single column insert in macro. Macro inserts two not one
 
I am recording a macro that will delete some columns and then insert one
column. After I stop the recording and run the macro it inserts two columns
not one?

Jim Thomlinson

Recorded single column insert in macro. Macro inserts two not one
 
Post your code...
--
HTH...

Jim Thomlinson


"lostatlewisu" wrote:

I am recording a macro that will delete some columns and then insert one
column. After I stop the recording and run the macro it inserts two columns
not one?


joel

Recorded single column insert in macro. Macro inserts two not one
 
You have to select one column before you do an insertion. When you highligh
multilple columns it deletes these column, but more than one column is
highlighted. If you then add columns, it will add as many column back as you
have highlighted.

"lostatlewisu" wrote:

I am recording a macro that will delete some columns and then insert one
column. After I stop the recording and run the macro it inserts two columns
not one?


Dave Peterson

Recorded single column insert in macro. Macro inserts two not one
 
Do you have merged cells in your worksheet?

lostatlewisu wrote:

I am recording a macro that will delete some columns and then insert one
column. After I stop the recording and run the macro it inserts two columns
not one?


--

Dave Peterson


All times are GMT +1. The time now is 08:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com