Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-11-2014, 07:37 AM
EC37 EC37 is offline NEWB to Macros - formatting exports Windows 7 64bit NEWB to Macros - formatting exports Office 2010 64bit
Advanced Beginner
NEWB to Macros - formatting exports
 
Join Date: May 2014
Location: Waltham, MA
Posts: 56
EC37 is on a distinguished road
Default NEWB to Macros - formatting exports

Hi



I've never used Marcos until today. I have been trying to expand my knowledge with Excel as much as possible, and I wanted to automate an export I do on a weekly basis. I used the "Record macro" function to record everything I do during my formatting process (it's fantastic!).

My question is this: I am producing an export of a timeline from MS Project. Then formatting Phases with one color, sub-phases with another color, removing columns etc. As we move along with the Project itself, we have been identifying tasks that were not previously included on the timeline, and they should be. So, I will insert tasks as needed- therefore, changing my macro because due to that new line, it in turn changes the row # that it should be color formatting. I'm fine with re-recording the macro as things change, because eventually, the need to do so will become less or non-existent toward the end.

I know I can go in and edit the code accordingly each time as well, but what I was wondering is: Can I alter the code to be more specific in regards to what it will format, rather than specifying by row# or column#? For example:

Row 245: (cells read as follows) A245: 2,046, B245: 0%, C245: Data Processing, D245: 3 (the remaining data in the table ends in column H)

Can I identify in the code, that I want it to find the cell containing "Data Processing", and color that row from cell "A###:H###" ?

Additionally, part of the formatting requirements is to group the cells by Phases and Sub-Phases. Similarly, can I identify in code to find "Data Processing", and group from that row to the row containing "Process final data" (the final task in that Phase)? that is what I end up finding to be more difficult when editing what is already there- back tracking and changing which rows to group from/to.

Final question! I realized as well, when I assigned conditional formatting requirements, that it did not record that piece of the puzzle. Unless there is another way to log the conditional formatting requirements? I'm also fine with just assigning the conditional formatting after I run my macros- but if it can be automated as well- all the better

Any help is greatly appreciated!

Thanks!!
E
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting contents after Tab of continuous lines or formatting specific area of word pawii Word 1 05-12-2014 05:24 AM
macros stebrownsword Word VBA 0 08-28-2013 01:16 AM
NEWB to Macros - formatting exports How to do Formatting Using Macros anju16saini Word VBA 1 03-11-2013 04:15 AM
NEWB to Macros - formatting exports Formatting with macros WaltR Word VBA 8 05-15-2012 06:28 PM
Macros nore Outlook 0 06-01-2011 04:39 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:02 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft