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 / January 2008

Tip: Looking for answers? Try searching our database.

Copy + paste macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Leigh Douglass - 28 Jan 2008 16:01 GMT
Hi

I have a table of data with 12 column headings P1 YTD through to
P12 YTD, these refer to the month in the year.   For my current month,
currently P9 YTD, the column has a vlookup to populate the data.  I have a
cell where I enter the current period, which is part of another formula.  
When i change that cell to P10 YTD, I would like a macro to copy the vlookup
and paste the values for the column heading P9 YTD, and when i change the
cell to P11 YTD, i would like the macro to copy and paste the P10 YTD
heading, etc.  I have all my vlookups in place for all periods, but once a
period has ended the data never changes so i no longer need to keep the
lookup.  I am happy to have the macro assigned to a button, it doesnt have
to happen automatically when the period cell is changed.  I just need the
macro to look for the period to ensure it copies the correct column. I am a
macro novice so any help gratefully received.
Thanks
Otto Moehrbach - 28 Jan 2008 16:36 GMT
Leigh
   I answered this in your previous post.  Otto
> Hi
>
[quoted text clipped - 14 lines]
> macro novice so any help gratefully received.
> Thanks
 
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.