Hi All,
I am using a vbs to create an excel file from sql data, I then add and
run a macro to format the excel, and then remove the macro using
"xlbook.VBProject.VBComponents.Remove
xlbook.VBProject.VBComponents("Module1") " in order to send the users
a clean excel without the macro. When the user tries to download using
pop3 it results in an error and the file cannot download. There seems
to be something remaining in the file after removing the macro that is
causing it to drive pop3 crazy. it seems that there is remnant of the
macro after removal.
If i skip creation of the macro i can send successfully, but the users
need it formatted.
I also tried formatting from vbs, such as
xlapp.ActiveSheet.PageSetup.Orientation = xlapp.xlLandScape and keep
getting an error that i cannot set the properties.
Please help!
|
|
0
|
|
|
|
Reply
|
SammyL
|
5/5/2010 6:53:51 PM |
|
On May 5, 2:53=A0pm, SammyL <sam...@gmail.com> wrote:
> Hi All,
>
> I am using a vbs to create an excel file from sql data, I then add and
> run a macro to format the excel, =A0and then remove the macro using
> "xlbook.VBProject.VBComponents.Remove
> xlbook.VBProject.VBComponents("Module1") " in order to send the users
> a clean excel without the macro. When the user tries to download using
> pop3 it results in an error and the file cannot download. There seems
> to be something remaining in the file after removing the macro that is
> causing it to drive pop3 crazy. it seems that there is remnant of the
> macro after removal.
>
> If i skip creation of the macro i can send successfully, but the users
> need it formatted.
>
> I also tried formatting from vbs, such as
> xlapp.ActiveSheet.PageSetup.Orientation =3D xlapp.xlLandScape and keep
> getting an error that i cannot set the properties.
> Please help!
The xLwhatever constants cannot be accessed (at least not easily) from
a VBScript. Rather, their value needs to be hard coded into your
script. For example, add the definition for the xlLandScape in your
script and drop the object preface ...
Const xlLandScape =3D 2
xlapp.ActiveSheet.PageSetup.Orientation =3D xlLandScape
Do similar for all of the other xl constants and your script should be
able to do all of the formatting without resorting to calling an Excel
macro.
_____________________
Tom Lavedas
|
|
0
|
|
|
|
Reply
|
Tom
|
5/5/2010 8:15:55 PM
|
|
"SammyL" <sammyl@gmail.com> wrote in message
news:009dd49c-d1f9-4e65-a09e-f4342f4379e4@v37g2000vbv.googlegroups.com...
> Hi All,
>
> I am using a vbs to create an excel file from sql data, I then add and
> run a macro to format the excel, and then remove the macro using
> "xlbook.VBProject.VBComponents.Remove
> xlbook.VBProject.VBComponents("Module1") " in order to send the users
> a clean excel without the macro. When the user tries to download using
> pop3 it results in an error and the file cannot download. There seems
> to be something remaining in the file after removing the macro that is
> causing it to drive pop3 crazy. it seems that there is remnant of the
> macro after removal.
>
> If i skip creation of the macro i can send successfully, but the users
> need it formatted.
>
> I also tried formatting from vbs, such as
> xlapp.ActiveSheet.PageSetup.Orientation = xlapp.xlLandScape and keep
> getting an error that i cannot set the properties.
> Please help!
>
>Dear SammyL,
If you are doing an exlbook, you can do it in Microsoft Excel. By the way,
if you skip creation of the macro that can be sent successfully, you can use
a formatt text. Ifthat doesn't work, please E-Mail me at 2 addresses.
LarsenK@verizon.net or kuhlpc#2@optimum.net.
From,
Kenny
|
|
0
|
|
|
|
Reply
|
Kenneth
|
7/28/2010 11:45:59 PM
|
|
|
2 Replies
321 Views
(page loaded in 0.115 seconds)
Similiar Articles: microsoft.public.windows.vista.mailThe host 'pop3.live.co.uk' could not be found. Please verify that you have ... Possible causes for this include server problems, network problems, or a long period ... Microsoft Newsgroupsmicrosoft.public.excel.worksheet.functions 4936 articles. 32 followers. Post Follow ... resources exist microsoft.public.dataprotectionmanager Utf 4 2389 I am having an issue ... Evaluate problem - microsoft.public.excel.programmingSMTP: Bad Sequence of Commands - microsoft.public.dotnet.languages ... Evaluate problem - microsoft.public.excel.programming I have been assuming that the sequence Here ... microsoft.public.windows.live.mail.desktopThe authentication setting might not be correct for your outgoing e-mail [SMTP] server. For help solving this problem, go to Help, search f... Excel F2 not working... - microsoft.public.excel.worksheet ...I use Excel 2007 on 2 different computers in 2 different ... Developer Portal of Choice C# Email without SMTP ... I'm having the same issue. The cell will show #Value ... Excel 2003 small business - not responding - microsoft.public.mac ...Excel stops responding when I try to type data in to a third cell ... ... Problem With Excel ... POP3 server not responding - microsoft.public.windows.vista.mail ... Excel 2003 ... Attachments received are corrupted - microsoft.public.mac.office ...Whether it > be an excel, word, pdf or jpg.. Most of the time, it's an issue with either the SMTP server, the recipient mail server (POP, IMAP or Exchange) or the ... problem sending email with vba - microsoft.public.access ...But it will only work if the smtp server don't require authentication. and ... Send email from vba code in excel - microsoft.public.excel.misc ... problem sending email with ... Fax server problem - microsoft.public.windows.server.general ...windows fax service smtp problems - microsoft.public.windows ... ... VBA code to fax from Excel or Outlook - microsoft ... FAX Server Problems Having problem receiving faxes on ... Microsoft Office Outlook Cannot Open - microsoft.public.windows ...I have open up to my problem on my computer ... but how do get connected to account pop3 ... Anyone else having this issue? Word oppens fine, but not Excel. Excel pop3 issue - Vista ForumsHi All, I am using a vbs to create an excel file from sql data, I then add and run a macro to format the excel, and then remove the macro using "xlbook.VBProject ... Windows Security Logon Issue - POP3 - Tech Support Guy ForumsExport Word Form to Excel Replace contents in brackets with Italic ... Recently ... Windows Security Logon Issue - POP3 Sending mail from Excel with CDO - Ron de Bruin Excel AutomationSending mail from Excel with CDO ... in the pickup directory, and SMTP service running on the machine picks it up and ... Home | SMTP Service Provider | SMTP Email Relay Server | SMTPIn addition, as issues arise with specific ISPs, the SMTP Service Provider will diagnose and work with each customer to rectify the issues, as well as, act as the ... How to Send Mail With POP3 | eHow.comMicrosoft Office Suite programs connect and interact with one another. An example would be sending an email directly from Excel without the need to use Outlook ... 7/30/2012 12:31:45 PM
|