MadeleineB
New Member
- Joined
- Sep 23, 2008
- Messages
- 18
For each different case I want the variable ColumnPaste to change to a different column, but its not working. Is using ReDim right or can I do it another way?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
I'm declaring it ReDim ColumnPaste("")<o></o>
<o></o>
The part of my code with the case statment is:<o></o>
<o></o>
Select Case KM
Case "78", "79", "80", "81", "82"
ReDim ColumnPaste(H) 'CHANGE WITH EACH Case
Sheets("Summary").Select
Sheets("Summary").Range(ColumnCut & RowS).Cut
Sheets("Summary").Range(ColumnPaste & RowS).Select
ActiveSheet.Paste
Case "84", "85", "85", "87", "88"
ReDim ColumnPaste(I) 'CHANGE WITH EACH Case
Sheets("Summary").Select
Sheets("Summary").Range(ColumnCut & RowS).Cut
Sheets("Summary").Range(ColumnPaste & RowS).Select
ActiveSheet.Paste<o></o>
<o></o>
I'm declaring it ReDim ColumnPaste("")<o></o>
<o></o>
The part of my code with the case statment is:<o></o>
<o></o>
Select Case KM
Case "78", "79", "80", "81", "82"
ReDim ColumnPaste(H) 'CHANGE WITH EACH Case
Sheets("Summary").Select
Sheets("Summary").Range(ColumnCut & RowS).Cut
Sheets("Summary").Range(ColumnPaste & RowS).Select
ActiveSheet.Paste
Case "84", "85", "85", "87", "88"
ReDim ColumnPaste(I) 'CHANGE WITH EACH Case
Sheets("Summary").Select
Sheets("Summary").Range(ColumnCut & RowS).Cut
Sheets("Summary").Range(ColumnPaste & RowS).Select
ActiveSheet.Paste<o></o>