PC Review


Reply
Thread Tools Rate Thread

Call Macro if no Dependents

 
 
Jacob
Guest
Posts: n/a
 
      16th Feb 2007
Hello All:

First of all any help would be great. I have a macro which shows the
Trace Dependents Audit Arrows. I would like to add to it to check for
any cell that contains data call a particular macro.

This other macro interacts with another application as well as excel
and puts a comment in the given selection.

The original macro looks like this:

Sub ShowDependents()
'
For Each cell In Selection
cell.ShowDependents

Next cell
End Sub

This traces any dependents. I would like for it to also for those
cells that are not blank or empty to call the other macro xyz which in
turn inserts the comment and references the external application.

Example:

Row A B
1 300 =RemoveHiddenApostrophe!A8
2
3 300
4
5 4A
6
7 5A

Cell "A1" would have a formula linking to somewhere else.

If you have any ideas they would be greatly appreciated.

Thanks,

Jacob

 
Reply With Quote
 
 
 
 
Jacob
Guest
Posts: n/a
 
      28th Feb 2007
Here is what I came up with. I am still have trouble when calling the
macro, but it has to do with how the second macro is written. I don't
have access to the code for it to manipulate it to work so this will
probably be the best I can do for now.

Jacob

Sub TestDependents()
'Created By Jacob Heaton
'02/28/07

For Each Cell In Selection

If Cell.HasFormula = False Then

If IsEmpty(Cell) = False Then

Call MacroName

End If

Else
Cell.ShowDependents
End If
Next

End Sub



On Feb 16, 1:04 pm, "Jacob" <app...@gmail.com> wrote:
> Hello All:
>
> First of all any help would be great. I have a macro which shows the
> Trace Dependents Audit Arrows. I would like to add to it to check for
> any cell that contains data call a particular macro.
>
> This other macro interacts with another application as well as excel
> and puts a comment in the given selection.
>
> The original macro looks like this:
>
> Sub ShowDependents()
> '
> For Each cell In Selection
> cell.ShowDependents
>
> Next cell
> End Sub
>
> This traces any dependents. I would like for it to also for those
> cells that are not blank or empty to call the other macro xyz which in
> turn inserts the comment and references the external application.
>
> Example:
>
> Row A B
> 1 300 =RemoveHiddenApostrophe!A8
> 2
> 3 300
> 4
> 5 4A
> 6
> 7 5A
>
> Cell "A1" would have a formula linking to somewhere else.
>
> If you have any ideas they would be greatly appreciated.
>
> Thanks,
>
> Jacob




 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can run a macro ( call a macro) on selection of any filtercriteria? milindkeer@gmail.com Microsoft Excel Worksheet Functions 7 20th Feb 2009 12:34 AM
call to macro in xlam from macro in xlsb SteveDB1 Microsoft Excel Programming 1 2nd Jul 2008 11:55 PM
Re: Excel Macro call Word Macro with Parameters =?Utf-8?B?Q3VydA==?= Microsoft Excel Programming 0 24th May 2007 12:21 AM
Call macro stored in Excel workbook from Outlook's macro =?Utf-8?B?R3ZhcmFt?= Microsoft Excel Programming 0 4th Oct 2006 05:47 PM
Call macro stored in Excel workbook from Outlook's macro =?Utf-8?B?R3ZhcmFt?= Microsoft Outlook VBA Programming 5 4th Oct 2006 06:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:04 PM.