Clean up code and Data validation issue - Any help is appreciated!

dstepan

Board Regular
Joined
Apr 16, 2009
Messages
160
Hello. I was just given this workbook to add some formulas which involves copying and pasting as valuee, and setting up Data validation for 3 symbols.

See code. I seem to be having a problem with this code. It is copying the wrong columns. my code is showing the wrong row #'s because I added additional lines for reserve.

Also, I tried to set up Data validation to pick from the 3 status signs at the bottom of the page. It works, except instead of getting the wingding shown I get the related alpabet or number.

Any help to clean up this code and get the Data Validation would be greatly appreciated.

I must complete this by end of day - 5:30 pm.

Thanks to all who attempt this.

Code:
Sub Monthly_NOs_Update()'
' Monthly_NOs_Update Macro
' Column F-ColumnD Column G-ColumnC
'
' Keyboard Shortcut: Ctrl+m
'
    Columns("C:G").Select
    Selection.Copy
    Range("j10:n10").Select
    ActiveSheet.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
        SkipBlanks:=False, Transpose:=False
   ActiveCell.Formula "m10" = _
        "=IF(OR(K10=0,m10=0,m10=""misc.""),m10,m10-k10)"
    Range("G10").Select
    ActiveCell.Formula "n10" = "=IF(OR(j10=0,n10=0),n10,n10-j10)"
    Range("F10:G10").Select
    Selection.Copy
    Range("F14:F16").Select
    ActiveSheet.Paste
    Range("F18:F20").Select
    ActiveSheet.Paste
    Range("F22:F27").Select
    ActiveSheet.Paste
    Range("F29:F31").Select
    ActiveSheet.Paste
    ActiveWindow.SmallScroll Down:=9
    Range("F32:F33").Select
    ActiveSheet.Paste
    Range("E32:E33").Select
    Application.CutCopyMode = False
    Selection.Copy
    Range("F32:G33").Select
    Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
        SkipBlanks:=False, Transpose:=False
    Application.CutCopyMode = False
    Range("C10:G33").Select
    Range("G33").Activate
    Selection.Copy
    ActiveWindow.SmallScroll Down:=-27
    Range("C10").Select
    Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
        xlNone, SkipBlanks:=False, Transpose:=False
    Columns("J:O").Select
    Application.CutCopyMode = False
    Selection.Delete Shift:=xlToLeft
End Sub




Excel 2007
ABCDEFGHI
1xxx
22016-2017 WORKPLAN ACTIVITIES
3
4xxx
5February 2016
62016 Measures2016 ExpenseCompleted this MonthTurn Away2016 Target$/Bal YTDChallenges - Action PlanStatus
7C1 - ESActivity for month
8xxxxxx133,080237238133,081xxx
12xxxxxx4,6495misc.4,650xxx
13xxxxxx6,3871misc.6,388xxx
14xxxxxx185- xxx
17C2 - CMActivity for month
18xxxxxx263113114264xxx
19xxxxxx1636364164xxx
20xxxxxx11- - xxx
23C3 - FLCLActivity for month
24xxxxxx222322xxx
28xxxxxx97979898xxx
29xxxxxx12828313xxx
32C4 - E&SActivity for the Month
33xxxxxx5,14543445,146xxx
34xxxxxx
35xxxxxx
38C5 - HWActivity for the Month2727- 28xxx
41C6 - EPActivity for the Month23- - xxx
45C7 - HActivity for the Month609xxx
49C8 - WCActivity for the Month80,030xxx
53C9 - PIActivity for the Month859xxx
67
68Not on Targeti
69Progress4
70SucceedingJ
Strategic Initiatives
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,215,332
Messages
6,124,314
Members
449,153
Latest member
JazzSingerNL

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top