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 2006

Tip: Looking for answers? Try searching our database.

Macro to Copy Grid Header

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason Heider - 22 Mar 2006 05:33 GMT
I have the following grid setup:

                  Amount 1   Amount 2
1/1/05          $500.00     $400.00
1/2/05          $425.00     $325.00
1/3/05          $250.00     $100.00
...

I would like to copy to create the following:

1/1/05    $500.00   Amount 1
1/2/05    $425.00   Amount 1
1/3/05    $250.00   Amount 1
1/1/05    $400.00   Amount 2
1/2/05    $325.00   Amount 2
1/3/05    $100.00   Amount 2

I have gotten everything working except copying the Amount 1 / Amount 2
multiple times in the last column.

Please help!!
KC - 23 Mar 2006 01:36 GMT
May be you can try

lastrow=range("A2").end(xldown).row
range("C2:C" & lastrow)="Amount1"
range("C" & lastrow+1 & ":C" & 2*lastrow -1)="Amount2"

> I have the following grid setup:
>
[quoted text clipped - 17 lines]
>
> Please help!!
 
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.