Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-02-2024, 02:57 AM
hansfrap hansfrap is offline How to get color-code Non-Working time Windows 11 How to get color-code Non-Working time Office 2021
Novice
How to get color-code Non-Working time
 
Join Date: Aug 2022
Posts: 9
hansfrap is on a distinguished road
Default How to get color-code Non-Working time

Problem
I want to use vba code to read the color-code of the non-working time from the graphic screen.


I found code to put it but don't know how to get the color code.

Question
What could be the vba-code?

Example code
Code:
Sub Timescale_NonWorking() 
    ' Sets nonworking time behind the task bars to red. 
    ' Activate Gantt Chart. 
    ViewApply Name:="&Gantt Chart", ApplyTo:=0
    TimescaleNonWorkingEx Draw:=pjBehind, Color:=&HAAAAFF 
End Sub
Reply With Quote
  #2  
Old 04-03-2024, 09:26 AM
DaleHowardMVP DaleHowardMVP is offline How to get color-code Non-Working time Windows 10 How to get color-code Non-Working time Office 2021
Advanced Beginner
 
Join Date: Apr 2023
Posts: 49
DaleHowardMVP is on a distinguished road
Default

In Microsoft VBA, there is a Method for working with the Timescale object, but as far as I know, there is no Property for working with it. Sorry, but hope this helps.
Reply With Quote
  #3  
Old 04-04-2024, 03:13 AM
hansfrap hansfrap is offline How to get color-code Non-Working time Windows 11 How to get color-code Non-Working time Office 2021
Novice
How to get color-code Non-Working time
 
Join Date: Aug 2022
Posts: 9
hansfrap is on a distinguished road
Default

Thanks for thinking along.
I also found an answer similar like that.

(Get color of the task bar in Microsoft Project (VBA) - Stack Overflow)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get color-code Non-Working time Color-code each letter according to his spreadsheet value zhz Word VBA 4 02-09-2018 05:16 PM
How to get color-code Non-Working time Field Code/Switch for Time not working Ozzie2842 Mail Merge 1 12-20-2016 01:08 PM
How to get color-code Non-Working time Add Time Code ossosso Word 14 01-07-2016 05:10 AM
Color code filenames in explorer terence_laoshi Office 0 01-18-2011 11:01 PM
Color code incoming emails Shawn76 Outlook 0 05-22-2010 07:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:36 AM.


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