Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Excel help

Name: Anonymous 2013-08-20 21:17

Need some excel help. Need to exclude a specific column from a range when copying from one sheet to another. Here's what I have:

Private Sub Worksheet_Change(ByVal Target As Range)
  If Target.Address = "$G$1" Then
    Range("A2:P570").Value = Sheets(Target.Value).Range("A2:P570").Value
  End If
End Sub

Need to figure out how to leave out the entirety of column K.

Thanks in advance

Name: Anonymous 2013-08-20 21:23

Ask Stack Overflow.

Name: Anonymous 2013-08-20 21:24

Name: Anonymous 2013-08-20 21:25

An actual programming question is my /prog/, WELL HAX MY ANUS.



  Range("A2:J570").Value = Sheets(Target.Value).Range("A2:J570").Value
  Range("K2:P570").Value = Sheets(Target.Value).Range("K2:P570").Value

Name: Anonymous 2013-08-20 21:25

Whoops meant L.


  Range("A2:J570").Value = Sheets(Target.Value).Range("A2:J570").Value
  Range("L2:P570").Value = Sheets(Target.Value).Range("L2:P570").Value

Name: Anonymous 2013-08-20 21:33

You are awesome thanks.

Name: Anonymous 2013-08-20 21:43

>>4
Nice try, /g/ro.

Name: Anonymous 2013-08-20 22:05

>>4
Excel is far from programming. Back to /g/ ``please!!!''

Name: Anonymous 2013-08-20 22:09

>>4
That's not even how the HMA faggot uses HMA.

Name: Anonymous 2013-08-20 22:09

>>8
Trying way too hard to fit in. You know where to go back to. WHILE your at it, TRY and [b][u][i]HAX MY ANUS[i][/u][/b]

Name: Anonymous 2013-08-20 22:12

>>4,5
Can a BBCODE EXPERT explain why the last ``Value'' is black instead of purple in these two posts?

Name: >>11 2013-08-20 22:14

>>10 need not reply.

Name: Anonymous 2013-08-20 22:53

>>12
Ok maybe I can help.

.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Name: Anonymous 2013-08-20 22:55

>>13
Did you just have a heart attack?

Name: Anonymous 2013-08-20 23:02

Excel has a language?

Name: Anonymous 2013-08-21 0:43

.............................................................................................................................................sorry, I'm back.

>>14
Yes. What was the question again?

Name: Anonymous 2013-08-21 0:47

nigger

Name: http://is.gd/rz0eqI 2013-08-21 3:37


Don't change these.
Name: Email:
Entire Thread Thread List