Hello Ashish,

I changed the address and tried to use the code still I am getting the same
error like the one when I tried to use the code of Vabz before installing
pdf extension.

Regards
Santosh
santoshkumar.subu...@gmail.com
> Date: Fri, 19 Apr 2013 19:55:47 +0530
> Subject: Re: $$Excel-Macros$$ print current file to pdf
> From: koul.ash...@gmail.com
> To: excel-macros@googlegroups.com
>
> Sub publish_as_pdf()
>
> Dim rng As Range
> Dim flname As String
>
> flname = "C:\Users\ashishkoul\Desktop\" & "ashish" & " .pdf"
>
> Set rng = Sheets(1).Range("a1:d" &
Sheets(1).Range("a1048576").End(xlUp).Row)
>
> rng.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
> flname, Quality:=xlQualityStandard, _
> IncludeDocProperties:=True, IgnorePrintAreas:=False,
> OpenAfterPublish:= _
> True
> End Sub
>
>
> On 4/19/13, santosh subudhi <santoshkumar.subu...@gmail.com> wrote:
> > Hi Vabs
> >
> > The solution provided by you is working perfectly fine.
> >
> > But there is a problem, I have to do this in my office system and IT
> > department has straight away refused to add this extension on the
system.
> >
> > Therefore I need a other way out.
> >
> > --
> > Regards
> > Santosh
> > santoshkumar.subu...@gmail.com
> > ------------------------------
> > Date: Wed, 17 Apr 2013 23:51:12 -0700
> > From: v...@vabs.in
> > To: excel-macros@googlegroups.com
> > Subject: Re: $$Excel-Macros$$ print current file to pdf
> >
> > Hi
> >
> > Dont add dim.
> >
> > I forgot to mentio you need to add this extension on your PC so as to
allow
> > file to save as PDF.
> >
> > Press F12 on excel sheet & check if you have save as pdf option there,
if
> > its not there then add following extension:
> >
> > http://www.microsoft.com/en-in/download/details.aspx?id=9943
> >
> >
> > Thanks!!
> > On Wednesday, April 17, 2013 5:52:35 PM UTC+5:30, santosh wrote:
> >
> >
> > Hello vabs,
> >
> > I am getting a error invalid procedure call or argument.
> >
> > I am tried to add "Dim destfile as string" in the second line still i am
> > getting an error.
> >
> > --
> > Regards
> > Santosh
> > santoshkum...@gmail.com
> >
> > ------------------------------
> > From: v...@vabs.in
> > Date: Wed, 17 Apr 2013 14:52:28 +0530
> >
> > Subject: Re: $$Excel-Macros$$ print current file to pdf
> > To: excel-...@googlegroups.com
> >
> > PFA
> >
> > Hope this helps.
> >
> > Mention destination folder name in cell p2 & make sure to add "/" in the
> > end.
> >
> > Cheers!!
> >
> >
> > On Tue, Apr 16, 2013 at 3:24 PM, santosh subudhi
> > <santoshkum...@gmail.com>wrote:
> >
> > Hello Ashish,
> >
> > We are using MS office 2007.
> >
> > I have attached sample sheet.
> > --
> > Regards
> > Santosh
> > santoshkum...@gmail.com
> > ------------------------------
> > From: koul....@gmail.com
> > Date: Mon, 15 Apr 2013 20:14:02 +0530
> > Subject: Re: $$Excel-Macros$$ print current file to pdf
> > To: excel-...@googlegroups.com
> >
> >
> > which version of excel r u using .. can u share a sample file
> >
> >
> > On Sun, Apr 14, 2013 at 7:23 PM, santosh subudhi <
> > santoshkumar.subu...@gmail.com> wrote:
> >
> > Hello Team
> >
> > I am looking for VBA code to print a active sheet into pdf without user
> > interface.
> >
> > Suppose the cell AA1 contains the address where the pdf to be stored and
> > Cell AA2 contains the name by which the pdf to be stored.
> > --
> > Regards
> > Santosh
> > santoshkumar.subu...@gmail.com
> >
> > --
> > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be?
It’s
> > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> > https://www.facebook.com/discussexcel
> >
> > FORUM RULES
> >
> > 1) Use concise, accurate thread titles. Poor thread titles, like Please
> > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> > will not get quick attention or may not be answered.
> > 2) Don't post a question in the thread of another member.
> > 3) Don't post questions regarding breaking or bypassing any security
> > measure.
> > 4) Acknowledge the responses you receive, good or bad.
> > 5) Jobs posting is not allowed.
> > 6) Sharing copyrighted material and their links is not allowed.
> >
> > NOTE : Don't ever post confidential data in a workbook. Forum owners and
> > members are not responsible for any loss.
> > ---
> > You received this message because you are subscribed to the Google
Groups
> > "MS EXCEL AND VBA MACROS" group.
> > To unsubscribe from this group and stop receiving emails from it, send
an
> > email to excel-macros+unsubscr...@googlegroups.com.
> > To post to this group, send email to excel-macros@googlegroups.com.
> > Visit this group at http://groups.google.com/group/excel-macros?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> >
> >
> >
> >
> > --
> > *Regards*
> > * *
> > *Ashish Koul*
> >
> >
> > *Visit*
> > *My Excel Blog <http://www.excelvbamacros.com/>*
> > Like Us on
> > Facebook<
http://www.facebook.com/pages/Excel-VBA-Codes-Macros/151803898222297>
> > Join Us on Facebook <http://www.facebook.com/groups/163491717053198/>
> >
> >
> > P Before printing, think about the environment.
> >
> >
> >
> > --
> > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be?
It’s
> > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> > https://www.facebook.com/discussexcel
> >
> > FORUM RULES
> >
> > 1) Use concise, accurate thread titles. Poor thread titles, like Please
> > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> > will not get quick attention or may not be answered.
> > 2) Don't post a question in the thread of another member.
> > 3) Don't post questions regarding breaking or bypassing any security
> > measure.
> > 4) Acknowledge the responses you receive, good or bad.
> > 5) Jobs posting is not allowed.
> > 6) Sharing copyrighted material and their links is not allowed.
> >
> > NOTE : Don't ever post confidential data in a workbook. Forum owners and
> > members are not responsible for any loss.
> > ---
> > You received this message because you are subscribed to the Google
Groups
> > "MS EXCEL AND VBA MACROS" group.
> > To unsubscribe from this group and stop receiving emails from it, send
an
> > email to excel-macros...@googlegroups.com.
> > To post to this group, send email to excel-...@googlegroups.com.
> > Visit this group at http://groups.google.com/group/excel-macros?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> >
> > --
> > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be?
It’s
> > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> > https://www.facebook.com/discussexcel
> >
> > FORUM RULES
> >
> > 1) Use concise, accurate thread titles. Poor thread titles, like Please
> > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> > will not get quick attention or may not be answered.
> > 2) Don't post a question in the thread of another member.
> > 3) Don't post questions regarding breaking or bypassing any security
> > measure.
> > 4) Acknowledge the responses you receive, good or bad.
> > 5) Jobs posting is not allowed.
> > 6) Sharing copyrighted material and their links is not allowed.
> >
> > NOTE : Don't ever post confidential data in a workbook. Forum owners and
> > members are not responsible for any loss.
> > ---
> > You received this message because you are subscribed to the Google
Groups
> > "MS EXCEL AND VBA MACROS" group.
> > To unsubscribe from this group and stop receiving emails from it, send
an
> > email to excel-macros...@googlegroups.com.
> > To post to this group, send email to excel-...@googlegroups.com.
> > Visit this group at http://groups.google.com/group/excel-macros?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> >
> >
> > --
> > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be?
It’s
> > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> > https://www.facebook.com/discussexcel
> >
> > FORUM RULES
> >
> > 1) Use concise, accurate thread titles. Poor thread titles, like Please
> > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> > will not get quick attention or may not be answered.
> > 2) Don't post a question in the thread of another member.
> > 3) Don't post questions regarding breaking or bypassing any security
> > measure.
> > 4) Acknowledge the responses you receive, good or bad.
> > 5) Jobs posting is not allowed.
> > 6) Sharing copyrighted material and their links is not allowed.
> >
> > NOTE : Don't ever post confidential data in a workbook. Forum owners and
> > members are not responsible for any loss.
> > ---
> > You received this message because you are subscribed to the Google
Groups
> > "MS EXCEL AND VBA MACROS" group.
> > To unsubscribe from this group and stop receiving emails from it, send
an
> > email to excel-macros...@googlegroups.com.
> > To post to this group, send email to excel-...@googlegroups.com.
> > Visit this group at http://groups.google.com/group/excel-macros?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> >
> >
> >
> > --
> > Regards
> > Santosh
> > santoshkum...@gmail.com
> >
> > --
> > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be?
It’s
> > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> > https://www.facebook.com/discussexcel
> >
> > FORUM RULES
> >
> > 1) Use concise, accurate thread titles. Poor thread titles, like Please
> > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> > will not get quick attention or may not be answered.
> > 2) Don't post a question in the thread of another member.
> > 3) Don't post questions regarding breaking or bypassing any security
> > measure.
> > 4) Acknowledge the responses you receive, good or bad.
> > 5) Jobs posting is not allowed.
> > 6) Sharing copyrighted material and their links is not allowed.
> >
> > NOTE : Don't ever post confidential data in a workbook. Forum owners and
> > members are not responsible for any loss.
> > ---
> > You received this message because you are subscribed to the Google
Groups
> > "MS EXCEL AND VBA MACROS" group.
> > To unsubscribe from this group and stop receiving emails from it, send
an
> > email to excel-macros+unsubscr...@googlegroups.com.
> > To post to this group, send email to excel-macros@googlegroups.com.
> > Visit this group at http://groups.google.com/group/excel-macros?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> > --
> > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be?
It’s
> > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> > https://www.facebook.com/discussexcel
> >
> > FORUM RULES
> >
> > 1) Use concise, accurate thread titles. Poor thread titles, like Please
> > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
will
> > not get quick attention or may not be answered.
> > 2) Don't post a question in the thread of another member.
> > 3) Don't post questions regarding breaking or bypassing any security
> > measure.
> > 4) Acknowledge the responses you receive, good or bad.
> > 5) Jobs posting is not allowed.
> > 6) Sharing copyrighted material and their links is not allowed.
> >
> > NOTE : Don't ever post confidential data in a workbook. Forum owners and
> > members are not responsible for any loss.
> > ---
> > You received this message because you are subscribed to the Google
Groups
> > "MS EXCEL AND VBA MACROS" group.
> > To unsubscribe from this group and stop receiving emails from it, send
an
> > email to excel-macros+unsubscr...@googlegroups.com.
> > To post to this group, send email to excel-macros@googlegroups.com.
> > Visit this group at http://groups.google.com/group/excel-macros?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> >
>
>
> --
> *Regards*
> * *
> *Ashish Koul*
>
>
> *Visit*
> *My Excel Blog <http://www.excelvbamacros.com/>*
> Like Us on Facebook<
http://www.facebook.com/pages/Excel-VBA-Codes-Macros/151803898222297>
> Join Us on Facebook <http://www.facebook.com/groups/163491717053198/>
>
>
> P Before printing, think about the environment.
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
"MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to