It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Trying to copy a value and paste it in another place. Help

Moderator: dafunkymunky

Trying to copy a value and paste it in another place. Help

Postby blm6930 on Fri Jun 29, 2007 5:13 am

I'm working in Excel and trying to program VB to do a function for me.
Let's look at what I've got so far shall we.

Sub DoneWithFlangedRec()

Range("I1").Select
Selection.Copy

Sheets("HCBOM").Select
Selection.AutoFilter Field:=4, Criteria1:= _
Paste("FLG_SEL!I1"), Operator:=xlOr, Criteria2:= _
"= "
Range("D1").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "20FL1"
Range("E1").Select
Sheets("HC_HDTHD").Select
End Sub

Obviously the whole paste thing isn't working out to well for me. What I would like to do is take the value in blue up there and paste it into an auto filter for Criteria1.

Any good ideas?
blm6930
 
Posts: 0
Joined: Fri Jun 29, 2007 4:58 am
Location: Oklahoma City

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests