Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi.
Can someone review the below code and suggest what i need to change to get the macro to insert the range name " sample_style" where the cursor was at the time the macro button was pressed. Currently, the macro inserts the "sample style", beneath the "sample_style" range. thanks in advance for any advice. thx If MsgBox("Do you want to insert a new style at your cursor", vbYesNo + vbDefaultButton2) = vbYes Then ActiveCell.EntireRow Range("sample_style").Select Selection.Copy ActiveCell.EntireRow.Insert Shift:=xlDown Else Exit Sub End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro - save to current location vs excel default location | Excel Discussion (Misc queries) | |||
question on links where info is added and cell location is wrong | Links and Linking in Excel | |||
Insert Calculated Field (wrong Qty*Price = wrong Amount) | Excel Discussion (Misc queries) | |||
Wrong Hyperlink location after sorting | Excel Discussion (Misc queries) | |||
Inserting after specific location on right click menu | Excel Discussion (Misc queries) |