Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro window: Is it possible to make global text changes?

Status
Not open for further replies.

jonnysnow

Programmer
Apr 10, 2003
36
US
I have a long macro that sets many control properties, based on many conditions. Examples of conditions are:

[Reports]![rptCVD]![Flag] = 0
[Reports]![rptCVD]![Flag] = 1
[Reports]![rptCVD]![Flag] = 2
[Reports]![rptCVD]![Flag] = 3

Examples of actions are to SetValue for the following:

Item Expression
[Reports]![rptCVD]![Label1].[Visible] True
[Reports]![rptCVD]![Label2].[Visible] True
[Reports]![rptCVD]![Label1].[Visible] False
[Reports]![rptCVD]![Label2].[Visible] False [Reports]![rptCVD]![Label1].[FontSize] 10
[Reports]![rptCVD]![Label2].[FontSize] 10 [Reports]![rptCVD]![Label1].[Color] Red
[Reports]![rptCVD]![Label2].[Color] Blue


These are all just examples, but I'm sure you get the idea.

Suppose I want to change all occurrences of [rptCVD] to [rptSortregion] or all occurrences of [Label1] to [IDlabel]. Is there an easy way to make these global text changes from the Macro window? Maybe from outside the Macro window???
 
i may be on the wrong track here, but when you talk about the macro window, do you actually mean the code window (as in VBA code).

If so, try download the add-in and install, then use it's find function... it lets you 'replace all'. Hope this helps.

jimlad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top