Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

function on the print area

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lil_gem - 11 Mar 2008 15:09 GMT
I am trying to create a macro to find duplicated companies in a list. I have
a function which will tell me if a company is duplicated, but my problem is
that it is defined on (e.g. A2:A300). I want to define the formula on the
print area so that the macro can be used on any list (with any number of
rows) without having to change the macro. I have tried defining it on the
whole column (A:A), but I guess since it has to compare to each value, this
does not work. I need a way to define a function from A2 to A"final row of
print area".

Can anyone help me please?
Martin Fishlock - 11 Mar 2008 15:31 GMT
Hi

Have a look at  the PageSetup.PrintArea property.

This will return the area for printing.
Signature

Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.

> I am trying to create a macro to find duplicated companies in a list. I have
> a function which will tell me if a company is duplicated, but my problem is
[quoted text clipped - 6 lines]
>
> Can anyone help me please?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.