Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default copy paste only value with VBA from pivot table

I have on sheet1 pivot table where is month in the page fields,emplooyes is
in the row fields and
working hours is in the column fields.
On the another sheet (sheet2) i make simple table where is in column A
emplooyes and in the column
from B to M is months of year.
I would like write a code, if is it possible, who will look "emplooyes on the
sheet2 ,"month" in the pivot table(sheet1) and then copy paste only value
"working hours" from pivot table(sheet1) range B5:B50
to the column B2:B50 if month is January or C2:C50 if month is February and
etc.
I try with following formula:
=if(sheet1!$A$1="jan";vlookup(sheet2!$A2;sheet1!$A $5:$B$50;2;false)) but I
must every time scroll down formula, drag all range to another column and
then make copy paste special copy only value
if I want change month in the pivot table.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200901/1

Reply
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
Printing pivot table along with a copy and paste for each page fie Jennifer Excel Discussion (Misc queries) 1 December 3rd 07 12:29 PM
Copy Pivot Table Data and Paste into New File S Sainsbury Excel Programming 1 November 15th 05 01:17 PM
Pivot table copy and paste yllee70 Excel Worksheet Functions 0 February 23rd 05 07:39 AM
copy/paste pivot table Todd L. Excel Worksheet Functions 0 December 30th 04 04:11 PM
Pivot Table Copy Paste Matthew Davis Excel Programming 1 November 10th 03 09:25 AM


All times are GMT +1. The time now is 12:27 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"