Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Conditional Formatting Macro

Hi,

I created a macro that creates conditional formatting when i select a
certain cell range. I want to automate the whole process due to having
several different cells to modify in a seperate data sheet. When I
recorded the process, it didn't record the whole process, so I am at a
loss right now. I want to run the macro in a different spreadsheet
(the data sheet). Below is one of my current macros. When this is
run, it creates a button that I want to press that runs a macro in the
data sheet which uses CF and toolbar buttons. Any ideas??

Sub TLD_1()

Application.Run "'Productivity Report Generator.xls'!TLD1"
ActiveSheet.Shapes("Button 28").Select
Selection.OnAction = "AHT"

ActiveSheet.Shapes("Button 28").Select
Selection.Characters.Text = "Your Productivity Report"
With Selection.Characters(Start:=1, Length:=24).Font
..Name = "Georgia"
..FontStyle = "Regular"
..Size = 10
..Strikethrough = False
..Superscript = False
..Subscript = False
..OutlineFont = False
..Shadow = False
..Underline = xlUnderlineStyleNone
..ColorIndex = xlAutomatic
End With
ActiveCell.Select
End Sub


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Conditional Formatting Macro

Sorry, I read what i posted and it didnt make much sense to me, so I'l
try to redescribe what I'm wanting to do. I have a button that runs
macro that creates a new toolbar with 6 other macros associated, i
also creates a button on the main page that I want to create a ne
macro for. This macro I want to create will apply to anothe
spreadsheet that is open. For ex. Cell's A1:A8 is a series of data.
want the macro to run the 1st macro button on the toolbar on tha
series, then I want it to run the 2nd macro button on series B1:B8 an
so forth. When I tried to record the macro, it didn't record any o
the conditional formatting that the macro buttons provided. Any idea'
how to fix this and make it work? if it possible? Thanks for all you
help

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 340
Default Conditional Formatting Macro

Go to the worksheet to be modified and then run

Range("a1:a8").select
MacroNameofFirstMacroToRun
Range("b1:b8").select
MacroNameOfSecondMacroToRun

and so forth.

Excel does not record the calling of macros from buttons in the macro
recorder, thus the results you saw.

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"dok112 " wrote in message
...
Sorry, I read what i posted and it didnt make much sense to me, so I'll
try to redescribe what I'm wanting to do. I have a button that runs a
macro that creates a new toolbar with 6 other macros associated, it
also creates a button on the main page that I want to create a new
macro for. This macro I want to create will apply to another
spreadsheet that is open. For ex. Cell's A1:A8 is a series of data. I
want the macro to run the 1st macro button on the toolbar on that
series, then I want it to run the 2nd macro button on series B1:B8 and
so forth. When I tried to record the macro, it didn't record any of
the conditional formatting that the macro buttons provided. Any idea's
how to fix this and make it work? if it possible? Thanks for all your
help!


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting & Macro MickyRat Excel Discussion (Misc queries) 0 May 27th 10 10:05 PM
Conditional formatting with a macro Diana Morrison Excel Worksheet Functions 2 December 6th 07 02:58 PM
Conditional Formatting in a Macro Ed Excel Discussion (Misc queries) 2 August 28th 06 11:23 PM
Conditional Formatting in Macro shantanu oak Excel Discussion (Misc queries) 2 July 14th 06 01:11 PM
macro for conditional formatting No Name Excel Programming 8 October 27th 03 08:03 PM


All times are GMT +1. The time now is 10:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"