Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

same sheet copy/paste special

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rpettis31 - 12 Mar 2008 15:34 GMT
I have data that is prefilled from other sheets to this master sheet.
The dates are prefilled and a Vlookup applies the data in the appropriate
cell without VB.  I just want to copy and paste special the values in the
sheet for the current date.

DATE          Positions
03/12/08        500     <--- want to automate the copy paste special rather
than the manual process.

For dt=2 to 1000
If cells(dt,1)=date then Copy paste special this row.
Next dt
JLGWhiz - 12 Mar 2008 16:01 GMT
This psuedo code gives the syntax you would use.
Dim dt As Range
For dt=2 to 1000
If cells(dt,1)=date Then
  dt.EntireRow.Copy
  Range("Z1").PasteSpecial Paste:=xlPasteValues
Next dt

> I have data that is prefilled from other sheets to this master sheet.
> The dates are prefilled and a Vlookup applies the data in the appropriate
[quoted text clipped - 13 lines]
>  
>  
JLGWhiz - 12 Mar 2008 19:48 GMT
Forgot the End If

This psuedo code gives the syntax you would use.
Dim dt As Range
For dt=2 to 1000
If cells(dt,1)=date Then
  dt.EntireRow.Copy
  Range("Z1").PasteSpecial Paste:=xlPasteValues
End If
Next dt

> I have data that is prefilled from other sheets to this master sheet.
> The dates are prefilled and a Vlookup applies the data in the appropriate
[quoted text clipped - 13 lines]
>  
>  
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.