Minggu, 08 Januari 2017

[ExcelVBA] cut and paste cells with code

 

I'm trying to cut and paste cells in a spreadsheet that correspond to subtotals. The subtotals and corresponding labels are multi-level (2 levels). There are two scenarios that I am trying to work with:

  1. select the subtotal labels in column B (7 labels) and cut and paste to the same row in column D
  2. select the subtotal labels in column C (24 labels) and cut and paste to the same row in column D

Is there any code that can accomplish this?

The file that I am working with is dynamic (monthly report) but the subtotal labels are constant. I already have code in place to format the data but I want to arrange the cells containing subtotal labels to be aligned in the same column (D) which they are not when the data is imported from the database. If it helps I can attempt to upload an example of the file.


Thanks


__._,_.___

Posted by: mgarza@fellowes.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------

.

__,_._,___

Tidak ada komentar:

Posting Komentar