Hello masta-s,
To make the Forum Moderators happy, and before you can expect a reply to your problem, you will have to read and follow the Forum Rules. > Wrapping your Code <, for instance.And to make me happy for the rest of my life![]()
Hello masta-s,
To make the Forum Moderators happy, and before you can expect a reply to your problem, you will have to read and follow the Forum Rules. > Wrapping your Code <, for instance.And to make me happy for the rest of my life![]()
Please consider:
Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
Hi masta-s,
Merging Cells causes a myrid of problems. Would it be o.k. with you if we did not Merge any Cells?
Winon,
Sure it will work. I just have an excel sheet where they've managed to apply that, but unfortunately it's password protected as well as VBA code is pw protected too. But it looks so nice...
Anyway, if there's a lot to do to make this work then sure at least pasting the rows without merging will do. Thanks in advance!
Hi, masta-s,
maybe try these two modified versions of your macros:
I went from A to J on this, we could use an array to hold all Columns![]()
Sub Macro1() ' ' Macro1 Macro ' ' Keyboard Shortcut: Ctrl+i ' If Selection.Cells(1).Row < 13 Then Exit Sub Rows(Selection.Cells(1).Row).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove Range("G" & Selection.Cells(1).Row - 1).AutoFill Destination:=Range("G" & Selection.Cells(1).Row - 1 & ":G" & Selection.Cells(1).Row), Type:=xlFillDefault End Sub
Ciao,![]()
Sub Macro2() ' ' Macro2 Macro ' ' Keyboard Shortcut: Ctrl+s ' Dim lngCol As Long Rows(ActiveCell.Row).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove For lngCol = 1 To 10 With Range(Cells(ActiveCell.Row, lngCol), Cells(ActiveCell.Row + 1)) .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = True .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False .Merge End With Next lngCol With Range("M71:M72") .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = True .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False .Merge End With End Sub
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks