LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Copying a row from a table

I have some code that will take data from a user form and place in a table.
The table contains a weekly list for top 8 defects. On the user form there is
a check box this box means the issue did not change from last week so the
code looks at the table, copies the corresponding row and should paste the
row in the next available cell. Below is my code. I'm having problems pasting
the data. I'm trying to paste the data without selecting the range to paste
to.

With Workbooks("Tables").Sheets("Top8").ListObjects("tb lTop8Issue")
.Range.AutoFilter Field:=7
.Range.AutoFilter Field:=1
.Range.AutoFilter Field:=7, Criteria1:=(iCW - 1)
.Range.AutoFilter Field:=1, Criteria1:=iLoop
.DataBodyRange.SpecialCells(xlCellTypeVisible).Cop y
.Range.AutoFilter Field:=1
.Range.AutoFilter Field:=7
.Range(ActiveCell.Offset(iLoop, 0), ActiveCell.Offset(iLoop,
6)).PasteSpecial Paste:=xlValues <- Problem with this line
End With

Any Suggestions?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying Table from one Sheet to Another JimS Excel Discussion (Misc queries) 6 April 3rd 23 12:15 PM
Copying Pivot Table Ken McLennan[_2_] Excel Programming 0 February 12th 09 02:20 PM
Copying pivot table Nadine Excel Discussion (Misc queries) 2 February 11th 08 03:13 PM
copying from a table tanner[_6_] Excel Programming 0 June 3rd 06 11:12 PM
copying value into alphanumeric table Tre_cool[_6_] Excel Programming 2 September 7th 05 08:07 PM


All times are GMT +1. The time now is 12:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"