Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.computer > #10490 > unrolled thread

Excel FOO; useful help?

Started byRobert Baer <robertbaer@localnet.com>
First post2017-09-18 13:20 -0800
Last post2017-10-21 20:57 -0800
Articles 20 on this page of 23 — 3 participants

Back to article view | Back to alt.computer


Contents

  Excel FOO; useful help? Robert Baer <robertbaer@localnet.com> - 2017-09-18 13:20 -0800
    Re: Excel FOO; useful help? VanguardLH <V@nguard.LH> - 2017-09-18 16:50 -0500
      Re: Excel FOO; useful help? Robert Baer <robertbaer@localnet.com> - 2017-10-15 22:06 -0700
    Re: Excel FOO; useful help? Paul <nospam@needed.invalid> - 2017-09-18 21:25 -0400
      Re: Excel FOO; useful help? Robert Baer <robertbaer@localnet.com> - 2017-09-19 01:25 -0700
        Re: Excel FOO; useful help? Paul <nospam@needed.invalid> - 2017-09-19 05:18 -0400
          Re: Excel FOO; useful help? Robert Baer <robertbaer@localnet.com> - 2017-09-20 01:49 -0700
          Re: Excel FOO; useful help? Robert Baer <robertbaer@localnet.com> - 2017-09-22 21:04 -0700
            Re: Excel FOO; useful help? (See next step at **) Robert Baer <robertbaer@localnet.com> - 2017-09-22 22:33 -0700
              Re: Excel FOO; useful help? (See next step at **) Paul <nospam@needed.invalid> - 2017-09-23 02:09 -0400
                Re: Excel FOO; useful help? (See next step at **) Robert Baer <robertbaer@localnet.com> - 2017-09-23 21:42 -0700
                  EXCEL-G@PEACH.EASE.LSOFT.COM authorization Robert Baer <robertbaer@localnet.com> - 2017-09-23 22:42 -0700
                  Re: Excel FOO; useful help? (See next step at **) Paul <nospam@needed.invalid> - 2017-09-24 05:42 -0400
                    Re: Excel FOO; useful help? (gurr!) Robert Baer <robertbaer@localnet.com> - 2017-09-24 16:12 -0700
          Re: Excel FOO; useful help? Robert Baer <robertbaer@localnet.com> - 2017-10-15 22:13 -0700
            Re: Excel FOO; useful help? Paul <nospam@needed.invalid> - 2017-10-16 01:31 -0400
              Re: Excel FOO; useful help? Robert Baer <robertbaer@localnet.com> - 2017-10-17 20:25 -0800
                Re: Excel FOO; useful help? Paul <nospam@needed.invalid> - 2017-10-18 00:29 -0400
                  Re: Excel FOO; useful help? Robert Baer <robertbaer@localnet.com> - 2017-10-20 21:45 -0700
                    Re: Excel FOO; useful help? Paul <nospam@needed.invalid> - 2017-10-21 05:56 -0400
              Re: Excel FOO; useful help? Robert Baer <robertbaer@localnet.com> - 2017-10-17 21:18 -0800
                Re: Excel FOO; useful help? Paul <nospam@needed.invalid> - 2017-10-18 01:29 -0400
                  Re: Excel FOO; useful help? Robert Baer <robertbaer@localnet.com> - 2017-10-21 20:57 -0800

Page 1 of 2  [1] 2  Next page →


#10490 — Excel FOO; useful help?

FromRobert Baer <robertbaer@localnet.com>
Date2017-09-18 13:20 -0800
SubjectExcel FOO; useful help?
Message-ID<KUVvB.88937$zE2.19326@fx20.iad>
'' Excel app no longer works

     vNam = Cells(2, 7).Text + "V"   'board voltage
     pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
     ActiveSheet.Shapes(1).Select
     ' cannot get printer to work, and no useful help
     ' ALWAYS wants to print to f'ing "My Documents" no matter what
     ' AND to add insult to injury, it asks for file name
'' THIS USED TO WORK
     Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
     ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
     Collate:=False, PrToFileName:=pPath + vNam
     ' the following scheme does not work either
     Application.ActivePrinter = "Acrobat PDFWriter on FILE:, 
PrToFileName:=pPath + vNam"
     Kill pPath + vNam   'only PDF left
' END  END

   Help, please.

[toc] | [next] | [standalone]


#10491

FromVanguardLH <V@nguard.LH>
Date2017-09-18 16:50 -0500
Message-ID<i0tbgncsxxec.dlg@v.nguard.lh>
In reply to#10490
Robert Baer wrote:

> '' Excel app no longer works
> 
>      vNam = Cells(2, 7).Text + "V"   'board voltage
>      pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
>      ActiveSheet.Shapes(1).Select
>      ' cannot get printer to work, and no useful help
>      ' ALWAYS wants to print to f'ing "My Documents" no matter what
>      ' AND to add insult to injury, it asks for file name
> '' THIS USED TO WORK
>      Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>      ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>      ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>      Collate:=False, PrToFileName:=pPath + vNam
>      ' the following scheme does not work either
>      Application.ActivePrinter = "Acrobat PDFWriter on FILE:, 
> PrToFileName:=pPath + vNam"
>      Kill pPath + vNam   'only PDF left
> ' END  END
> 
>    Help, please.

Suggested newsgroup: microsoft.public.excel.programming

[toc] | [prev] | [next] | [standalone]


#10512

FromRobert Baer <robertbaer@localnet.com>
Date2017-10-15 22:06 -0700
Message-ID<n7XEB.5151$gV2.779@fx29.iad>
In reply to#10491
VanguardLH wrote:
> Robert Baer wrote:
>
>> '' Excel app no longer works
>>
>>       vNam = Cells(2, 7).Text + "V"   'board voltage
>>       pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
>>       ActiveSheet.Shapes(1).Select
>>       ' cannot get printer to work, and no useful help
>>       ' ALWAYS wants to print to f'ing "My Documents" no matter what
>>       ' AND to add insult to injury, it asks for file name
>> '' THIS USED TO WORK
>>       Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>>       ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>>       ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>>       Collate:=False, PrToFileName:=pPath + vNam
>>       ' the following scheme does not work either
>>       Application.ActivePrinter = "Acrobat PDFWriter on FILE:,
>> PrToFileName:=pPath + vNam"
>>       Kill pPath + vNam   'only PDF left
>> ' END  END
>>
>>     Help, please.
>
> Suggested newsgroup: microsoft.public.excel.programming
>
   They not only do not respond,but it looks like the group is dead.

[toc] | [prev] | [next] | [standalone]


#10492

FromPaul <nospam@needed.invalid>
Date2017-09-18 21:25 -0400
Message-ID<opprlq$jmp$1@dont-email.me>
In reply to#10490
Robert Baer wrote:
> '' Excel app no longer works
> 
>     vNam = Cells(2, 7).Text + "V"   'board voltage
>     pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
>     ActiveSheet.Shapes(1).Select
>     ' cannot get printer to work, and no useful help
>     ' ALWAYS wants to print to f'ing "My Documents" no matter what
>     ' AND to add insult to injury, it asks for file name
> '' THIS USED TO WORK
>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>     ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>     Collate:=False, PrToFileName:=pPath + vNam
>     ' the following scheme does not work either
>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:, 
> PrToFileName:=pPath + vNam"
>     Kill pPath + vNam   'only PDF left
> ' END  END
> 
>   Help, please.
> 
> 

The account doing the printing, doesn't have "permission"
to access the area used on the D: drive. You'd moved the
disk or the data around, and a new account is involved.

The problem probably isn't in the Excel code at all,
and the problem is external to the code. Your new
environment is doing it.

Pure guess,
    Paul

[toc] | [prev] | [next] | [standalone]


#10493

FromRobert Baer <robertbaer@localnet.com>
Date2017-09-19 01:25 -0700
Message-ID<fw4wB.128156$e33.35991@fx01.iad>
In reply to#10492
Paul wrote:
> Robert Baer wrote:
>> '' Excel app no longer works
>>
>>     vNam = Cells(2, 7).Text + "V"   'board voltage
>>     pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
>>     ActiveSheet.Shapes(1).Select
>>     ' cannot get printer to work, and no useful help
>>     ' ALWAYS wants to print to f'ing "My Documents" no matter what
>>     ' AND to add insult to injury, it asks for file name
>> '' THIS USED TO WORK
>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>>     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>>     ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>>     Collate:=False, PrToFileName:=pPath + vNam
>>     ' the following scheme does not work either
>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:,
>> PrToFileName:=pPath + vNam"
>>     Kill pPath + vNam   'only PDF left
>> ' END  END
>>
>>   Help, please.
>>
>>
>
> The account doing the printing, doesn't have "permission"
> to access the area used on the D: drive. You'd moved the
> disk or the data around, and a new account is involved.
* Yes, i _did_ move things including XLS files around, in fact a lot of 
things..drive X to drive Y; other things..drive W to drive Y.
   Then copied .XLS (etc) files to drive Z.
   Macro fails in exactly the same way on either drive.

   OS independent: Win2K, WinXP.
>
> The problem probably isn't in the Excel code at all,
> and the problem is external to the code. Your new
> environment is doing it.
>
> Pure guess,
>     Paul
   Looks like a rather good (plausible) guess.
   So...how would i go about finding sub and sinking same?

[toc] | [prev] | [next] | [standalone]


#10494

FromPaul <nospam@needed.invalid>
Date2017-09-19 05:18 -0400
Message-ID<opqncp$mq7$1@dont-email.me>
In reply to#10493
Robert Baer wrote:
> Paul wrote:
>> Robert Baer wrote:
>>> '' Excel app no longer works
>>>
>>>     vNam = Cells(2, 7).Text + "V"   'board voltage
>>>     pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
>>>     ActiveSheet.Shapes(1).Select
>>>     ' cannot get printer to work, and no useful help
>>>     ' ALWAYS wants to print to f'ing "My Documents" no matter what
>>>     ' AND to add insult to injury, it asks for file name
>>> '' THIS USED TO WORK
>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>>>     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>>>     ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>>>     Collate:=False, PrToFileName:=pPath + vNam
>>>     ' the following scheme does not work either
>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:,
>>> PrToFileName:=pPath + vNam"
>>>     Kill pPath + vNam   'only PDF left
>>> ' END  END
>>>
>>>   Help, please.
>>>
>>>
>>
>> The account doing the printing, doesn't have "permission"
>> to access the area used on the D: drive. You'd moved the
>> disk or the data around, and a new account is involved.
> * Yes, i _did_ move things including XLS files around, in fact a lot of 
> things..drive X to drive Y; other things..drive W to drive Y.
>   Then copied .XLS (etc) files to drive Z.
>   Macro fails in exactly the same way on either drive.
> 
>   OS independent: Win2K, WinXP.
>>
>> The problem probably isn't in the Excel code at all,
>> and the problem is external to the code. Your new
>> environment is doing it.
>>
>> Pure guess,
>>     Paul
>   Looks like a rather good (plausible) guess.
>   So...how would i go about finding sub and sinking same?

Is D:\ an NTFS or a FAT32 partition ?

That shouldn't be a problem on FAT32. FAT32 doesn't have permissions.
FAT32 also has a 4GB max file size, and isn't suited to storing your
movie collection. That's a disadvantage of it.

On NTFS, you could do properties on the areas
in question, then check the Security tab,
to see if the owner is "unknown". The OS can only
know about owners listed in users and accounts
(you're not likely to be on a "domain" at home).
When the OS is installed, it has a long string
of numbers as a prefix for the accounts. And the
"Robert" account on one machine (NTFS ownership)
is not the same as the "Robert" account on a new install.
You can add ownership to individual files, but that's
a pretty painful way to do it.

The later OSes have "takeown" but I don't know
what the equivalent is for WinXP. The suggestion
here is to use subinacl.exe, available for download.

https://www.howtogeek.com/forum/topic/xp-takeown-and-cacls

    http://www.microsoft.com/en-us/download/details.aspx?id=23510&751be11f-ede8-5a0c-058c-2ee190a24fa6=True&e6b34bbe-475b-1abd-2c51-b5034bcdd6d2=True

Another way to study this, at least on WinXP, is with
Process Monitor from Sysinternals. It says "Vista" now,
so the current one may be "too new". The URL for the
older version, is not constructed the way this URL is.

https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

The web page for the older version is here. Version 3.1 seems
to be the last for WinXP, if you believe the Requirements
list on the page.

https://web.archive.org/web/20150117221121/http://technet.microsoft.com:80/en-us/sysinternals/bb896645

I had some trouble with the download link. I hope this works.

    https://web.archive.org/web/20150208154759if_/http://download.sysinternals.com/files/ProcessMonitor.zip

You start that running, do your (broken) Excel operation,
then see what thing it is trying to do (writefile, createfile)
and guess from that why it's failing. Using the filter option,
allows viewing only WriteFile operations, or viewing only
CreateFile operations. As otherwise, the Process Monitor
program collects too much data for humans to use.

But using the Properties dialog and security tab in File Explorer,
should be as effective. Process Monitor, is if you need to
construct a brand new theory, based on behavior.

HTH,
     Paul

[toc] | [prev] | [next] | [standalone]


#10495

FromRobert Baer <robertbaer@localnet.com>
Date2017-09-20 01:49 -0700
Message-ID<wYpwB.34186$%D2.7743@fx14.iad>
In reply to#10494
Paul wrote:
> Robert Baer wrote:
>> Paul wrote:
>>> Robert Baer wrote:
>>>> '' Excel app no longer works
>>>>
>>>>     vNam = Cells(2, 7).Text + "V"   'board voltage
>>>>     pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
>>>>     ActiveSheet.Shapes(1).Select
>>>>     ' cannot get printer to work, and no useful help
>>>>     ' ALWAYS wants to print to f'ing "My Documents" no matter what
>>>>     ' AND to add insult to injury, it asks for file name
>>>> '' THIS USED TO WORK
>>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>>>>     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>>>>     ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>>>>     Collate:=False, PrToFileName:=pPath + vNam
>>>>     ' the following scheme does not work either
>>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:,
>>>> PrToFileName:=pPath + vNam"
>>>>     Kill pPath + vNam   'only PDF left
>>>> ' END  END
>>>>
>>>>   Help, please.
>>>>
>>>>
>>>
>>> The account doing the printing, doesn't have "permission"
>>> to access the area used on the D: drive. You'd moved the
>>> disk or the data around, and a new account is involved.
>> * Yes, i _did_ move things including XLS files around, in fact a lot
>> of things..drive X to drive Y; other things..drive W to drive Y.
>>   Then copied .XLS (etc) files to drive Z.
>>   Macro fails in exactly the same way on either drive.
>>
>>   OS independent: Win2K, WinXP.
>>>
>>> The problem probably isn't in the Excel code at all,
>>> and the problem is external to the code. Your new
>>> environment is doing it.
>>>
>>> Pure guess,
>>>     Paul
>>   Looks like a rather good (plausible) guess.
>>   So...how would i go about finding sub and sinking same?
>
> Is D:\ an NTFS or a FAT32 partition ?
>
> That shouldn't be a problem on FAT32. FAT32 doesn't have permissions.
> FAT32 also has a 4GB max file size, and isn't suited to storing your
> movie collection. That's a disadvantage of it.
>
> On NTFS, you could do properties on the areas
> in question, then check the Security tab,
> to see if the owner is "unknown". The OS can only
> know about owners listed in users and accounts
> (you're not likely to be on a "domain" at home).
> When the OS is installed, it has a long string
> of numbers as a prefix for the accounts. And the
> "Robert" account on one machine (NTFS ownership)
> is not the same as the "Robert" account on a new install.
> You can add ownership to individual files, but that's
> a pretty painful way to do it.
>
> The later OSes have "takeown" but I don't know
> what the equivalent is for WinXP. The suggestion
> here is to use subinacl.exe, available for download.
>
> https://www.howtogeek.com/forum/topic/xp-takeown-and-cacls
>
>
> http://www.microsoft.com/en-us/download/details.aspx?id=23510&751be11f-ede8-5a0c-058c-2ee190a24fa6=True&e6b34bbe-475b-1abd-2c51-b5034bcdd6d2=True
>
>
> Another way to study this, at least on WinXP, is with
> Process Monitor from Sysinternals. It says "Vista" now,
> so the current one may be "too new". The URL for the
> older version, is not constructed the way this URL is.
>
> https://docs.microsoft.com/en-us/sysinternals/downloads/procmon
>
> The web page for the older version is here. Version 3.1 seems
> to be the last for WinXP, if you believe the Requirements
> list on the page.
>
> https://web.archive.org/web/20150117221121/http://technet.microsoft.com:80/en-us/sysinternals/bb896645
>
>
> I had some trouble with the download link. I hope this works.
>
>
> https://web.archive.org/web/20150208154759if_/http://download.sysinternals.com/files/ProcessMonitor.zip
>
>
> You start that running, do your (broken) Excel operation,
> then see what thing it is trying to do (writefile, createfile)
> and guess from that why it's failing. Using the filter option,
> allows viewing only WriteFile operations, or viewing only
> CreateFile operations. As otherwise, the Process Monitor
> program collects too much data for humans to use.
>
> But using the Properties dialog and security tab in File Explorer,
> should be as effective. Process Monitor, is if you need to
> construct a brand new theory, based on behavior.
>
> HTH,
>      Paul
   Do not remember what D: was, it is gone now; probably was FAT32.
   Copied to F: FAT32 and G: NTFS.
   They fail the same way, so as a wild crude guess the XLS may have 
been in NTFS with permissions and names and that info might be somehow 
stored in the file itself..so a copy even to FAT32 would "demand" those 
links/attributes.
   Wild crude guess the XLS copied to different NTFS would have 
conflicting permissions and names.

   Will noodle around using your guide above.
   Failing that, i might be able to re-construct from scratch...in the 
FAT32 drive.

   Thanks,
R. Baer

[toc] | [prev] | [next] | [standalone]


#10502

FromRobert Baer <robertbaer@localnet.com>
Date2017-09-22 21:04 -0700
Message-ID<z3lxB.119855$Iu1.27597@fx07.iad>
In reply to#10494
Paul wrote:
> Robert Baer wrote:
>> Paul wrote:
>>> Robert Baer wrote:
>>>> '' Excel app no longer works
>>>>
>>>>     vNam = Cells(2, 7).Text + "V"   'board voltage
>>>>     pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
>>>>     ActiveSheet.Shapes(1).Select
>>>>     ' cannot get printer to work, and no useful help
>>>>     ' ALWAYS wants to print to f'ing "My Documents" no matter what
>>>>     ' AND to add insult to injury, it asks for file name
>>>> '' THIS USED TO WORK
>>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>>>>     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>>>>     ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>>>>     Collate:=False, PrToFileName:=pPath + vNam
>>>>     ' the following scheme does not work either
>>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:,
>>>> PrToFileName:=pPath + vNam"
>>>>     Kill pPath + vNam   'only PDF left
>>>> ' END  END
>>>>
>>>>   Help, please.
>>>>
>>>>
>>>
>>> The account doing the printing, doesn't have "permission"
>>> to access the area used on the D: drive. You'd moved the
>>> disk or the data around, and a new account is involved.
>> * Yes, i _did_ move things including XLS files around, in fact a lot
>> of things..drive X to drive Y; other things..drive W to drive Y.
>>   Then copied .XLS (etc) files to drive Z.
>>   Macro fails in exactly the same way on either drive.
>>
>>   OS independent: Win2K, WinXP.
>>>
>>> The problem probably isn't in the Excel code at all,
>>> and the problem is external to the code. Your new
>>> environment is doing it.
>>>
>>> Pure guess,
>>>     Paul
>>   Looks like a rather good (plausible) guess.
>>   So...how would i go about finding sub and sinking same?
>
> Is D:\ an NTFS or a FAT32 partition ?
>
> That shouldn't be a problem on FAT32. FAT32 doesn't have permissions.
> FAT32 also has a 4GB max file size, and isn't suited to storing your
> movie collection. That's a disadvantage of it.
>
> On NTFS, you could do properties on the areas
> in question, then check the Security tab,
> to see if the owner is "unknown". The OS can only
> know about owners listed in users and accounts
> (you're not likely to be on a "domain" at home).
> When the OS is installed, it has a long string
> of numbers as a prefix for the accounts. And the
> "Robert" account on one machine (NTFS ownership)
> is not the same as the "Robert" account on a new install.
> You can add ownership to individual files, but that's
> a pretty painful way to do it.
>
> The later OSes have "takeown" but I don't know
> what the equivalent is for WinXP. The suggestion
> here is to use subinacl.exe, available for download.
>
> https://www.howtogeek.com/forum/topic/xp-takeown-and-cacls
* NO GO: Partial quote of above:
(QUOTE)
download subinacl.exe here:
http://www.microsoft.com/downl.....laylang=en

You must be administrator.

Copy this code to a text file and change extension to .cmd
Place subinacle.exe in the same directory as the .cmd file you made and 
run it.
(/QUOTE)

   Well, the download gives an .MSI, and the screens _say_ installed.
   BUT _no_ subinacle.exe program anywhere.
   Therefore cannot follow any of the howtogeek instructions after that 
quote.

>
>
> http://www.microsoft.com/en-us/download/details.aspx?id=23510&751be11f-ede8-5a0c-058c-2ee190a24fa6=True&e6b34bbe-475b-1abd-2c51-b5034bcdd6d2=True
>
>
> Another way to study this, at least on WinXP, is with
> Process Monitor from Sysinternals. It says "Vista" now,
> so the current one may be "too new". The URL for the
> older version, is not constructed the way this URL is.
* Will try this next..

>
> https://docs.microsoft.com/en-us/sysinternals/downloads/procmon
>
> The web page for the older version is here. Version 3.1 seems
> to be the last for WinXP, if you believe the Requirements
> list on the page.
>
> https://web.archive.org/web/20150117221121/http://technet.microsoft.com:80/en-us/sysinternals/bb896645
>
>
> I had some trouble with the download link. I hope this works.
>
>
> https://web.archive.org/web/20150208154759if_/http://download.sysinternals.com/files/ProcessMonitor.zip
>
>
> You start that running, do your (broken) Excel operation,
> then see what thing it is trying to do (writefile, createfile)
> and guess from that why it's failing. Using the filter option,
> allows viewing only WriteFile operations, or viewing only
> CreateFile operations. As otherwise, the Process Monitor
> program collects too much data for humans to use.
>
> But using the Properties dialog and security tab in File Explorer,
> should be as effective. Process Monitor, is if you need to
> construct a brand new theory, based on behavior.
>
> HTH,
>      Paul

[toc] | [prev] | [next] | [standalone]


#10503 — Re: Excel FOO; useful help? (See next step at **)

FromRobert Baer <robertbaer@localnet.com>
Date2017-09-22 22:33 -0700
SubjectRe: Excel FOO; useful help? (See next step at **)
Message-ID<vmmxB.204522$8I2.9767@fx40.iad>
In reply to#10502
Robert Baer wrote:
> Paul wrote:
>> Robert Baer wrote:
>>> Paul wrote:
>>>> Robert Baer wrote:
>>>>> '' Excel app no longer works
>>>>>
>>>>>     vNam = Cells(2, 7).Text + "V"   'board voltage
>>>>>     pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
>>>>>     ActiveSheet.Shapes(1).Select
>>>>>     ' cannot get printer to work, and no useful help
>>>>>     ' ALWAYS wants to print to f'ing "My Documents" no matter what
>>>>>     ' AND to add insult to injury, it asks for file name
>>>>> '' THIS USED TO WORK
>>>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>>>>>     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>>>>>     ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>>>>>     Collate:=False, PrToFileName:=pPath + vNam
>>>>>     ' the following scheme does not work either
>>>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:,
>>>>> PrToFileName:=pPath + vNam"
>>>>>     Kill pPath + vNam   'only PDF left
>>>>> ' END  END
>>>>>
>>>>>   Help, please.
>>>>>
>>>>>
>>>>
>>>> The account doing the printing, doesn't have "permission"
>>>> to access the area used on the D: drive. You'd moved the
>>>> disk or the data around, and a new account is involved.
>>> * Yes, i _did_ move things including XLS files around, in fact a lot
>>> of things..drive X to drive Y; other things..drive W to drive Y.
>>>   Then copied .XLS (etc) files to drive Z.
>>>   Macro fails in exactly the same way on either drive.
>>>
>>>   OS independent: Win2K, WinXP.
>>>>
>>>> The problem probably isn't in the Excel code at all,
>>>> and the problem is external to the code. Your new
>>>> environment is doing it.
>>>>
>>>> Pure guess,
>>>>     Paul
>>>   Looks like a rather good (plausible) guess.
>>>   So...how would i go about finding sub and sinking same?
>>
>> Is D:\ an NTFS or a FAT32 partition ?
>>
>> That shouldn't be a problem on FAT32. FAT32 doesn't have permissions.
>> FAT32 also has a 4GB max file size, and isn't suited to storing your
>> movie collection. That's a disadvantage of it.
>>
>> On NTFS, you could do properties on the areas
>> in question, then check the Security tab,
>> to see if the owner is "unknown". The OS can only
>> know about owners listed in users and accounts
>> (you're not likely to be on a "domain" at home).
>> When the OS is installed, it has a long string
>> of numbers as a prefix for the accounts. And the
>> "Robert" account on one machine (NTFS ownership)
>> is not the same as the "Robert" account on a new install.
>> You can add ownership to individual files, but that's
>> a pretty painful way to do it.
>>
>> The later OSes have "takeown" but I don't know
>> what the equivalent is for WinXP. The suggestion
>> here is to use subinacl.exe, available for download.
>>
>> https://www.howtogeek.com/forum/topic/xp-takeown-and-cacls
> * NO GO: Partial quote of above:
> (QUOTE)
> download subinacl.exe here:
> http://www.microsoft.com/downl.....laylang=en
>
> You must be administrator.
>
> Copy this code to a text file and change extension to .cmd
> Place subinacle.exe in the same directory as the .cmd file you made and
> run it.
> (/QUOTE)
>
>    Well, the download gives an .MSI, and the screens _say_ installed.
>    BUT _no_ subinacle.exe program anywhere.
>    Therefore cannot follow any of the howtogeek instructions after that
> quote.
>
>>
>>
>> http://www.microsoft.com/en-us/download/details.aspx?id=23510&751be11f-ede8-5a0c-058c-2ee190a24fa6=True&e6b34bbe-475b-1abd-2c51-b5034bcdd6d2=True
>>
>>
>>
>> Another way to study this, at least on WinXP, is with
>> Process Monitor from Sysinternals. It says "Vista" now,
>> so the current one may be "too new". The URL for the
>> older version, is not constructed the way this URL is.
> * Will try this next..
**
   Tried the download M$ gave, nogo so stumbled on the ver 3.1 and that 
"works".
  It wants to continually run/capture no matter what.
   So while running, i ran my Excel program to fail point, then saved 
the capture (Logfile.PML).
   Exited out, re-ran and loaded the PML.
   Long as all hell, seems i started at 170760 and ended at 400107.

   But see no way to extract in ASCII form, what i see on the screen to 
a text file for analysis; just that "segment" is long as all heck.
   And the program wants to continue to run/capture; it finally stumbles 
on itself and stops responding.

   Tried highlighting what i wanted for copy to paste to text editor; 
_empty_ buffer so nogo.
   Tried highlighting for delete; nogo.
   Seems no editing other than a find.

   Any ideas for progress here?
   Thanks.


>
>>
>> https://docs.microsoft.com/en-us/sysinternals/downloads/procmon
>>
>> The web page for the older version is here. Version 3.1 seems
>> to be the last for WinXP, if you believe the Requirements
>> list on the page.
>>
>> https://web.archive.org/web/20150117221121/http://technet.microsoft.com:80/en-us/sysinternals/bb896645
>>
>>
>>
>> I had some trouble with the download link. I hope this works.
>>
>>
>> https://web.archive.org/web/20150208154759if_/http://download.sysinternals.com/files/ProcessMonitor.zip
>>
>>
>>
>> You start that running, do your (broken) Excel operation,
>> then see what thing it is trying to do (writefile, createfile)
>> and guess from that why it's failing. Using the filter option,
>> allows viewing only WriteFile operations, or viewing only
>> CreateFile operations. As otherwise, the Process Monitor
>> program collects too much data for humans to use.
>>
>> But using the Properties dialog and security tab in File Explorer,
>> should be as effective. Process Monitor, is if you need to
>> construct a brand new theory, based on behavior.
>>
>> HTH,
>>      Paul
>

[toc] | [prev] | [next] | [standalone]


#10504 — Re: Excel FOO; useful help? (See next step at **)

FromPaul <nospam@needed.invalid>
Date2017-09-23 02:09 -0400
SubjectRe: Excel FOO; useful help? (See next step at **)
Message-ID<oq4tr1$rkh$1@dont-email.me>
In reply to#10503
Robert Baer wrote:

>> * Will try this next..
> **
>   Tried the download M$ gave, nogo so stumbled on the ver 3.1 and that 
> "works".
>  It wants to continually run/capture no matter what.
>   So while running, i ran my Excel program to fail point, then saved the 
> capture (Logfile.PML).
>   Exited out, re-ran and loaded the PML.
>   Long as all hell, seems i started at 170760 and ended at 400107.
> 
>   But see no way to extract in ASCII form, what i see on the screen to a 
> text file for analysis; just that "segment" is long as all heck.
>   And the program wants to continue to run/capture; it finally stumbles 
> on itself and stops responding.
> 
>   Tried highlighting what i wanted for copy to paste to text editor; 
> _empty_ buffer so nogo.
>   Tried highlighting for delete; nogo.
>   Seems no editing other than a find.
> 
>   Any ideas for progress here?
>   Thanks.

In File menu, untick "Capture Events" to stop the trace.
Use Edit : Clear Display to remove that trace.
Tick in File menu, the "Capture Events" again, to start a new trace.

In File : Save, you can save in various formats.
You can load the PML, then save out in CSV or XML.

However, I warn that the other formats are even worse, in
terms of readability.

*******

If you were to print to MyFirstPrint.pdf, you can stop
the trace in ProcMon, then use the Edit : Find to look
for instances of "MyFirstPrint.pdf". If you didn't find the
filename, then maybe the directory it is trying to open
cannot be opened for some reason.

This is mainly a "First Person" tool. If you find an entry for
example, do "Properties" on it, to get the most info possible.
If you made a CSV, the file could be "too wide" on your screen
and hard to navigate. XML makes the file longer, but depending
on entry length, might still be hard to navigate.

    Paul

[toc] | [prev] | [next] | [standalone]


#10505 — Re: Excel FOO; useful help? (See next step at **)

FromRobert Baer <robertbaer@localnet.com>
Date2017-09-23 21:42 -0700
SubjectRe: Excel FOO; useful help? (See next step at **)
Message-ID<xIGxB.100156$xI2.84940@fx42.iad>
In reply to#10504

[Multipart message — attachments visible in raw view] — view raw

Paul wrote:
> Robert Baer wrote:
>
>>> * Will try this next..
>> **
>>   Tried the download M$ gave, nogo so stumbled on the ver 3.1 and that
>> "works".
>>  It wants to continually run/capture no matter what.
>>   So while running, i ran my Excel program to fail point, then saved
>> the capture (Logfile.PML).
>>   Exited out, re-ran and loaded the PML.
>>   Long as all hell, seems i started at 170760 and ended at 400107.
>>
>>   But see no way to extract in ASCII form, what i see on the screen to
>> a text file for analysis; just that "segment" is long as all heck.
>>   And the program wants to continue to run/capture; it finally
>> stumbles on itself and stops responding.
>>
>>   Tried highlighting what i wanted for copy to paste to text editor;
>> _empty_ buffer so nogo.
>>   Tried highlighting for delete; nogo.
>>   Seems no editing other than a find.
>>
>>   Any ideas for progress here?
>>   Thanks.
>
> In File menu, untick "Capture Events" to stop the trace.
> Use Edit : Clear Display to remove that trace.
> Tick in File menu, the "Capture Events" again, to start a new trace.
>
> In File : Save, you can save in various formats.
> You can load the PML, then save out in CSV or XML.
>
> However, I warn that the other formats are even worse, in
> terms of readability.
>
> *******
>
> If you were to print to MyFirstPrint.pdf, you can stop
> the trace in ProcMon, then use the Edit : Find to look
> for instances of "MyFirstPrint.pdf". If you didn't find the
> filename, then maybe the directory it is trying to open
> cannot be opened for some reason.
>
> This is mainly a "First Person" tool. If you find an entry for
> example, do "Properties" on it, to get the most info possible.
> If you made a CSV, the file could be "too wide" on your screen
> and hard to navigate. XML makes the file longer, but depending
> on entry length, might still be hard to navigate.
>
>     Paul
   Check; found that "Capture Events" business and that allowed me to do 
copy and paste what i saw "of merit", whatever that means.
   Pasted to Kedit which allows up to 1000 characters before it wraps 
around. Longest line copied is 467 characters wide, plenty of slack.

   I added comments; start looking at line 97.
   No clues WRT filename or path, so i might need to undo one or more of 
the default filters.
   Note gaps in the Sequence numbers, especially after line 123.

   Which default filter(s) do you recommend i remove to (hopefully) find 
filename / path?

   The program error is a bit before the wrong path set-up; no filename 
is passed on either.

   The error is in the two VB commands
     Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
	and
     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
     ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
     Collate:=False, PrToFileName:=pPath + vNam

   The first command seems to be ignored; the system is set-up for 
Acrobat PDFWriter on LPT1:.
   Changing the set-up to FILE: does not help the second command.

   Note that "printtofile" does not have the proper characters in 
caps,which tells me that it is not accepted .
   Either the printtofile part is ignored and the rest accepted, or the 
whole command is not accepted.

   The wonderful thing is that M$ gives NO expansion or help for 
ActiveWindow.SelectedSheets.PrintOut or the equivalent.
   The Microsoft.Public.Excel newsgroups has given zero response.
   And the VB books also give no clues.

Thanks.

[toc] | [prev] | [next] | [standalone]


#10506 — EXCEL-G@PEACH.EASE.LSOFT.COM authorization

FromRobert Baer <robertbaer@localnet.com>
Date2017-09-23 22:42 -0700
SubjectEXCEL-G@PEACH.EASE.LSOFT.COM authorization
Message-ID<kBHxB.97080$zE2.70830@fx20.iad>
In reply to#10505
   I log into their Listserv and get: "You are not authorized to view 
the archives with the email address you used to log in."
   I used this as a resource ages ago, so thought to give it a try.

   UGH. No clue as how that can be fixed.
   Any ideas?
   Thanks.

[toc] | [prev] | [next] | [standalone]


#10507 — Re: Excel FOO; useful help? (See next step at **)

FromPaul <nospam@needed.invalid>
Date2017-09-24 05:42 -0400
SubjectRe: Excel FOO; useful help? (See next step at **)
Message-ID<oq7umn$1ui$1@dont-email.me>
In reply to#10505
Robert Baer wrote:
> Paul wrote:
>> Robert Baer wrote:
>>
>>>> * Will try this next..
>>> **
>>>   Tried the download M$ gave, nogo so stumbled on the ver 3.1 and that
>>> "works".
>>>  It wants to continually run/capture no matter what.
>>>   So while running, i ran my Excel program to fail point, then saved
>>> the capture (Logfile.PML).
>>>   Exited out, re-ran and loaded the PML.
>>>   Long as all hell, seems i started at 170760 and ended at 400107.
>>>
>>>   But see no way to extract in ASCII form, what i see on the screen to
>>> a text file for analysis; just that "segment" is long as all heck.
>>>   And the program wants to continue to run/capture; it finally
>>> stumbles on itself and stops responding.
>>>
>>>   Tried highlighting what i wanted for copy to paste to text editor;
>>> _empty_ buffer so nogo.
>>>   Tried highlighting for delete; nogo.
>>>   Seems no editing other than a find.
>>>
>>>   Any ideas for progress here?
>>>   Thanks.
>>
>> In File menu, untick "Capture Events" to stop the trace.
>> Use Edit : Clear Display to remove that trace.
>> Tick in File menu, the "Capture Events" again, to start a new trace.
>>
>> In File : Save, you can save in various formats.
>> You can load the PML, then save out in CSV or XML.
>>
>> However, I warn that the other formats are even worse, in
>> terms of readability.
>>
>> *******
>>
>> If you were to print to MyFirstPrint.pdf, you can stop
>> the trace in ProcMon, then use the Edit : Find to look
>> for instances of "MyFirstPrint.pdf". If you didn't find the
>> filename, then maybe the directory it is trying to open
>> cannot be opened for some reason.
>>
>> This is mainly a "First Person" tool. If you find an entry for
>> example, do "Properties" on it, to get the most info possible.
>> If you made a CSV, the file could be "too wide" on your screen
>> and hard to navigate. XML makes the file longer, but depending
>> on entry length, might still be hard to navigate.
>>
>>     Paul
>   Check; found that "Capture Events" business and that allowed me to do 
> copy and paste what i saw "of merit", whatever that means.
>   Pasted to Kedit which allows up to 1000 characters before it wraps 
> around. Longest line copied is 467 characters wide, plenty of slack.
> 
>   I added comments; start looking at line 97.
>   No clues WRT filename or path, so i might need to undo one or more of 
> the default filters.
>   Note gaps in the Sequence numbers, especially after line 123.
> 
>   Which default filter(s) do you recommend i remove to (hopefully) find 
> filename / path?
> 
>   The program error is a bit before the wrong path set-up; no filename 
> is passed on either.
> 
>   The error is in the two VB commands
>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>     and
>     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>     ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>     Collate:=False, PrToFileName:=pPath + vNam
> 
>   The first command seems to be ignored; the system is set-up for 
> Acrobat PDFWriter on LPT1:.
>   Changing the set-up to FILE: does not help the second command.
> 
>   Note that "printtofile" does not have the proper characters in 
> caps,which tells me that it is not accepted .
>   Either the printtofile part is ignored and the rest accepted, or the 
> whole command is not accepted.
> 
>   The wonderful thing is that M$ gives NO expansion or help for 
> ActiveWindow.SelectedSheets.PrintOut or the equivalent.
>   The Microsoft.Public.Excel newsgroups has given zero response.
>   And the VB books also give no clues.
> 
> Thanks.
> 

The aswidsagent.exe in your trace, is an AVG file.

https://support.avg.com/answers?id=906b0000000DhxzAAC

You have a volume name for one of your volumes (C: ?), that
looks like there might be a control character on the
end of the name.

You can upload up to 500KB of text to pastebin.com and take
the URL from that page, as a means of "transporting text" to
USENET. As otherwise, USENET article size will limit the
largest object that can be sent.

Not every "warning" in logs such as these, is important.
A missing name in the registry is normal and common. Programs
look to see if "optional" registry entries are present, and
if they are not present, it is no big deal.

Because looking in these traces is like looking for a needle
in a haystack, the person collecting the trace is the one
best situated to make sense of it. And I don't have the
materials here, to "simulate" your exact setup, so it would
be pretty hard for me to debug it by playing along at my end.

Lots of things on Windows are like this. Reams and reams
of irrelevant messages, 99.99% of them like that. It's the
0.01% that you're looking for.

I was thinking maybe in this case, you'd see destination storage
is not accessible. But since you know about the existence of
some print macro, maybe it's something in there. If the tool
using the macro had an "error console", maybe you could view what
it shows. And if the actual macro isn't throwing an error, perhaps
there isn't a detectable problem at the level the macro
runs at.

    Paul

[toc] | [prev] | [next] | [standalone]


#10508 — Re: Excel FOO; useful help? (gurr!)

FromRobert Baer <robertbaer@localnet.com>
Date2017-09-24 16:12 -0700
SubjectRe: Excel FOO; useful help? (gurr!)
Message-ID<oZWxB.93603$sH2.25154@fx05.iad>
In reply to#10507
Paul wrote:
> Robert Baer wrote:
>> Paul wrote:
>>> Robert Baer wrote:
>>>
>>>>> * Will try this next..
>>>> ** Tried the download M$ gave, nogo so stumbled on the ver 3.1
>>>> and that "works". It wants to continually run/capture no matter
>>>> what. So while running, i ran my Excel program to fail point,
>>>> then saved the capture (Logfile.PML). Exited out, re-ran and
>>>> loaded the PML. Long as all hell, seems i started at 170760 and
>>>> ended at 400107.
>>>>
>>>> But see no way to extract in ASCII form, what i see on the
>>>> screen to a text file for analysis; just that "segment" is long
>>>> as all heck. And the program wants to continue to run/capture;
>>>> it finally stumbles on itself and stops responding.
>>>>
>>>> Tried highlighting what i wanted for copy to paste to text
>>>> editor; _empty_ buffer so nogo. Tried highlighting for delete;
>>>> nogo. Seems no editing other than a find.
>>>>
>>>> Any ideas for progress here? Thanks.
>>>
>>> In File menu, untick "Capture Events" to stop the trace. Use Edit
>>> : Clear Display to remove that trace. Tick in File menu, the
>>> "Capture Events" again, to start a new trace.
>>>
>>> In File : Save, you can save in various formats. You can load the
>>> PML, then save out in CSV or XML.
>>>
>>> However, I warn that the other formats are even worse, in terms
>>> of readability.
>>>
>>> *******
>>>
>>> If you were to print to MyFirstPrint.pdf, you can stop the trace
>>> in ProcMon, then use the Edit : Find to look for instances of
>>> "MyFirstPrint.pdf". If you didn't find the filename, then maybe
>>> the directory it is trying to open cannot be opened for some
>>> reason.
>>>
>>> This is mainly a "First Person" tool. If you find an entry for
>>> example, do "Properties" on it, to get the most info possible. If
>>> you made a CSV, the file could be "too wide" on your screen and
>>> hard to navigate. XML makes the file longer, but depending on
>>> entry length, might still be hard to navigate.
>>>
>>> Paul
>> Check; found that "Capture Events" business and that allowed me to
>>  do copy and paste what i saw "of merit", whatever that means.
>> Pasted to Kedit which allows up to 1000 characters before it wraps
>>  around. Longest line copied is 467 characters wide, plenty of
>> slack.
>>
>> I added comments; start looking at line 97. No clues WRT filename
>> or path, so i might need to undo one or more of the default
>> filters. Note gaps in the Sequence numbers, especially after line
>> 123.
>>
>> Which default filter(s) do you recommend i remove to (hopefully)
>> find filename / path?
>>
>> The program error is a bit before the wrong path set-up; no
>> filename is passed on either.
>>
>> The error is in the two VB commands Application.ActivePrinter =
>> "Acrobat PDFWriter on FILE:" and
>> ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>> ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>> Collate:=False, PrToFileName:=pPath + vNam
>>
>> The first command seems to be ignored; the system is set-up for
>> Acrobat PDFWriter on LPT1:. Changing the set-up to FILE: does not
>> help the second command.
>>
>> Note that "printtofile" does not have the proper characters in
>> caps,which tells me that it is not accepted . Either the
>> printtofile part is ignored and the rest accepted, or the whole
>> command is not accepted.
>>
>> The wonderful thing is that M$ gives NO expansion or help for
>> ActiveWindow.SelectedSheets.PrintOut or the equivalent. The
>> Microsoft.Public.Excel newsgroups has given zero response. And the
>> VB books also give no clues.
>>
>> Thanks.
>>
>
> The aswidsagent.exe in your trace, is an AVG file.
* It is from AVAST; should make no difference.

>
> https://support.avg.com/answers?id=906b0000000DhxzAAC
>
> You have a volume name for one of your volumes (C: ?), that looks
> like there might be a control character on the end of the name.
* Interesting...the character immediately to right of "Win_XP" is a space.

   I tried variants of the VB command(s). Path name assignments get ignored.
   I have no error messages; the GD assignment ALWAYS remains a default 
"My Documents".

R. Baer

>
> You can upload up to 500KB of text to pastebin.com and take the URL
> from that page, as a means of "transporting text" to USENET. As
> otherwise, USENET article size will limit the largest object that can
> be sent.
>
> Not every "warning" in logs such as these, is important. A missing
> name in the registry is normal and common. Programs look to see if
> "optional" registry entries are present, and if they are not present,
> it is no big deal.
>
> Because looking in these traces is like looking for a needle in a
> haystack, the person collecting the trace is the one best situated to
> make sense of it. And I don't have the materials here, to "simulate"
> your exact setup, so it would be pretty hard for me to debug it by
> playing along at my end.
>
> Lots of things on Windows are like this. Reams and reams of
> irrelevant messages, 99.99% of them like that. It's the 0.01% that
> you're looking for.
>
> I was thinking maybe in this case, you'd see destination storage is
> not accessible. But since you know about the existence of some print
> macro, maybe it's something in there. If the tool using the macro had
> an "error console", maybe you could view what it shows. And if the
> actual macro isn't throwing an error, perhaps there isn't a
> detectable problem at the level the macro runs at.
>
> Paul

[toc] | [prev] | [next] | [standalone]


#10513

FromRobert Baer <robertbaer@localnet.com>
Date2017-10-15 22:13 -0700
Message-ID<ieXEB.5963$pU1.240@fx17.iad>
In reply to#10494
Paul wrote:
> Robert Baer wrote:
>> Paul wrote:
>>> Robert Baer wrote:
>>>> '' Excel app no longer works
>>>>
>>>>     vNam = Cells(2, 7).Text + "V"   'board voltage
>>>>     pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
>>>>     ActiveSheet.Shapes(1).Select
>>>>     ' cannot get printer to work, and no useful help
>>>>     ' ALWAYS wants to print to f'ing "My Documents" no matter what
>>>>     ' AND to add insult to injury, it asks for file name
>>>> '' THIS USED TO WORK
>>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>>>>     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>>>>     ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>>>>     Collate:=False, PrToFileName:=pPath + vNam
>>>>     ' the following scheme does not work either
>>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:,
>>>> PrToFileName:=pPath + vNam"
>>>>     Kill pPath + vNam   'only PDF left
>>>> ' END  END
>>>>
>>>>   Help, please.
>>>>
>>>>
>>>
>>> The account doing the printing, doesn't have "permission"
>>> to access the area used on the D: drive. You'd moved the
>>> disk or the data around, and a new account is involved.
>> * Yes, i _did_ move things including XLS files around, in fact a lot
>> of things..drive X to drive Y; other things..drive W to drive Y.
>>   Then copied .XLS (etc) files to drive Z.
>>   Macro fails in exactly the same way on either drive.
>>
>>   OS independent: Win2K, WinXP.
>>>
>>> The problem probably isn't in the Excel code at all,
>>> and the problem is external to the code. Your new
>>> environment is doing it.
>>>
>>> Pure guess,
>>>     Paul
>>   Looks like a rather good (plausible) guess.
>>   So...how would i go about finding sub and sinking same?
>
> Is D:\ an NTFS or a FAT32 partition ?
>
> That shouldn't be a problem on FAT32. FAT32 doesn't have permissions.
> FAT32 also has a 4GB max file size, and isn't suited to storing your
> movie collection. That's a disadvantage of it.
>
> On NTFS, you could do properties on the areas
> in question, then check the Security tab,
> to see if the owner is "unknown". The OS can only
> know about owners listed in users and accounts
> (you're not likely to be on a "domain" at home).
> When the OS is installed, it has a long string
> of numbers as a prefix for the accounts. And the
> "Robert" account on one machine (NTFS ownership)
> is not the same as the "Robert" account on a new install.
> You can add ownership to individual files, but that's
> a pretty painful way to do it.
>
> The later OSes have "takeown" but I don't know
> what the equivalent is for WinXP. The suggestion
> here is to use subinacl.exe, available for download.
>
> https://www.howtogeek.com/forum/topic/xp-takeown-and-cacls
>
>
> http://www.microsoft.com/en-us/download/details.aspx?id=23510&751be11f-ede8-5a0c-058c-2ee190a24fa6=True&e6b34bbe-475b-1abd-2c51-b5034bcdd6d2=True
>
>
> Another way to study this, at least on WinXP, is with
> Process Monitor from Sysinternals. It says "Vista" now,
> so the current one may be "too new". The URL for the
> older version, is not constructed the way this URL is.
>
> https://docs.microsoft.com/en-us/sysinternals/downloads/procmon
>
> The web page for the older version is here. Version 3.1 seems
> to be the last for WinXP, if you believe the Requirements
> list on the page.
>
> https://web.archive.org/web/20150117221121/http://technet.microsoft.com:80/en-us/sysinternals/bb896645
>
>
> I had some trouble with the download link. I hope this works.
>
>
> https://web.archive.org/web/20150208154759if_/http://download.sysinternals.com/files/ProcessMonitor.zip
>
>
> You start that running, do your (broken) Excel operation,
> then see what thing it is trying to do (writefile, createfile)
> and guess from that why it's failing. Using the filter option,
> allows viewing only WriteFile operations, or viewing only
> CreateFile operations. As otherwise, the Process Monitor
> program collects too much data for humans to use.
>
> But using the Properties dialog and security tab in File Explorer,
> should be as effective. Process Monitor, is if you need to
> construct a brand new theory, based on behavior.
>
> HTH,
>      Paul
   Spent a lot of time with Process Monitor and narrowed it down to the 
longwinded
  ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
   ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
   Collate:=False, PrToFileName:=pPath + vNam

   Basically, the file name/path is not recognized, even the shortened 
version
   Application.ActivePrinter = "Acrobat PDFWriter on FILE:, _
    PrToFileName:=pPath + vNam"
fails for the same reason.

[toc] | [prev] | [next] | [standalone]


#10514

FromPaul <nospam@needed.invalid>
Date2017-10-16 01:31 -0400
Message-ID<os1g6l$gsg$1@dont-email.me>
In reply to#10513
Robert Baer wrote:
> Paul wrote:
>> Robert Baer wrote:
>>> Paul wrote:
>>>> Robert Baer wrote:
>>>>> '' Excel app no longer works
>>>>>
>>>>>     vNam = Cells(2, 7).Text + "V"   'board voltage
>>>>>     pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
>>>>>     ActiveSheet.Shapes(1).Select
>>>>>     ' cannot get printer to work, and no useful help
>>>>>     ' ALWAYS wants to print to f'ing "My Documents" no matter what
>>>>>     ' AND to add insult to injury, it asks for file name
>>>>> '' THIS USED TO WORK
>>>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>>>>>     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>>>>>     ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>>>>>     Collate:=False, PrToFileName:=pPath + vNam
>>>>>     ' the following scheme does not work either
>>>>>     Application.ActivePrinter = "Acrobat PDFWriter on FILE:,
>>>>> PrToFileName:=pPath + vNam"
>>>>>     Kill pPath + vNam   'only PDF left
>>>>> ' END  END
>>>>>
>>>>>   Help, please.
>>>>>
>>>>>
>>>>
>>>> The account doing the printing, doesn't have "permission"
>>>> to access the area used on the D: drive. You'd moved the
>>>> disk or the data around, and a new account is involved.
>>> * Yes, i _did_ move things including XLS files around, in fact a lot
>>> of things..drive X to drive Y; other things..drive W to drive Y.
>>>   Then copied .XLS (etc) files to drive Z.
>>>   Macro fails in exactly the same way on either drive.
>>>
>>>   OS independent: Win2K, WinXP.
>>>>
>>>> The problem probably isn't in the Excel code at all,
>>>> and the problem is external to the code. Your new
>>>> environment is doing it.
>>>>
>>>> Pure guess,
>>>>     Paul
>>>   Looks like a rather good (plausible) guess.
>>>   So...how would i go about finding sub and sinking same?
>>
>> Is D:\ an NTFS or a FAT32 partition ?
>>
>> That shouldn't be a problem on FAT32. FAT32 doesn't have permissions.
>> FAT32 also has a 4GB max file size, and isn't suited to storing your
>> movie collection. That's a disadvantage of it.
>>
>> On NTFS, you could do properties on the areas
>> in question, then check the Security tab,
>> to see if the owner is "unknown". The OS can only
>> know about owners listed in users and accounts
>> (you're not likely to be on a "domain" at home).
>> When the OS is installed, it has a long string
>> of numbers as a prefix for the accounts. And the
>> "Robert" account on one machine (NTFS ownership)
>> is not the same as the "Robert" account on a new install.
>> You can add ownership to individual files, but that's
>> a pretty painful way to do it.
>>
>> The later OSes have "takeown" but I don't know
>> what the equivalent is for WinXP. The suggestion
>> here is to use subinacl.exe, available for download.
>>
>> https://www.howtogeek.com/forum/topic/xp-takeown-and-cacls
>>
>>
>> http://www.microsoft.com/en-us/download/details.aspx?id=23510&751be11f-ede8-5a0c-058c-2ee190a24fa6=True&e6b34bbe-475b-1abd-2c51-b5034bcdd6d2=True 
>>
>>
>>
>> Another way to study this, at least on WinXP, is with
>> Process Monitor from Sysinternals. It says "Vista" now,
>> so the current one may be "too new". The URL for the
>> older version, is not constructed the way this URL is.
>>
>> https://docs.microsoft.com/en-us/sysinternals/downloads/procmon
>>
>> The web page for the older version is here. Version 3.1 seems
>> to be the last for WinXP, if you believe the Requirements
>> list on the page.
>>
>> https://web.archive.org/web/20150117221121/http://technet.microsoft.com:80/en-us/sysinternals/bb896645 
>>
>>
>>
>> I had some trouble with the download link. I hope this works.
>>
>>
>> https://web.archive.org/web/20150208154759if_/http://download.sysinternals.com/files/ProcessMonitor.zip 
>>
>>
>>
>> You start that running, do your (broken) Excel operation,
>> then see what thing it is trying to do (writefile, createfile)
>> and guess from that why it's failing. Using the filter option,
>> allows viewing only WriteFile operations, or viewing only
>> CreateFile operations. As otherwise, the Process Monitor
>> program collects too much data for humans to use.
>>
>> But using the Properties dialog and security tab in File Explorer,
>> should be as effective. Process Monitor, is if you need to
>> construct a brand new theory, based on behavior.
>>
>> HTH,
>>      Paul
>   Spent a lot of time with Process Monitor and narrowed it down to the 
> longwinded
>  ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>   ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>   Collate:=False, PrToFileName:=pPath + vNam
> 
>   Basically, the file name/path is not recognized, even the shortened 
> version
>   Application.ActivePrinter = "Acrobat PDFWriter on FILE:, _
>    PrToFileName:=pPath + vNam"
> fails for the same reason.
> 

Is your objective to get the code working, as it
currently exists ?

Or do you just want your output right now, and
then move on to the next problem ?

The example here, they just pass the whole file name
as a discrete string. This is an archived USENET discussion
thread, hosted on a web server.

https://www.pcreview.co.uk/threads/vba-printout.992701/

    Sub Macro1()
    Application.activate = "Acrobat PDFWriter sur LPT1:"
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, _
    ActivePrinter:="Acrobat PDFWriter sur LPT1:", _
    PrintToFile:= True, PrToFileName:="C:\test.pdf"
    End Sub

So the

    PrToFileName:="C:\test.pdf"

defines where to put the output.

Then the question would be, whether pPath+vNam
happens to have a space in the resulting string,
and needs some sort of quotes around it to insulate it.
You'll notice the C:\test.pdf doesn't have space
characters in it, to screw up the path.

    Paul

[toc] | [prev] | [next] | [standalone]


#10515

FromRobert Baer <robertbaer@localnet.com>
Date2017-10-17 20:25 -0800
Message-ID<DQzFB.30428$Ov1.7963@fx30.iad>
In reply to#10514
Paul wrote:
> Robert Baer wrote:
>> Paul wrote:
>>> Robert Baer wrote:
>>>> Paul wrote:
>>>>> Robert Baer wrote:
>>>>>> '' Excel app no longer works
>>>>>>
>>>>>> vNam = Cells(2, 7).Text + "V" 'board voltage
>>>>>> pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\"
>>>>>> ActiveSheet.Shapes(1).Select
>>>>>> ' cannot get printer to work, and no useful help
>>>>>> ' ALWAYS wants to print to f'ing "My Documents" no matter what
>>>>>> ' AND to add insult to injury, it asks for file name
>>>>>> '' THIS USED TO WORK
>>>>>> Application.ActivePrinter = "Acrobat PDFWriter on FILE:"
>>>>>> ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>>>>>> ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>>>>>> Collate:=False, PrToFileName:=pPath + vNam
>>>>>> ' the following scheme does not work either
>>>>>> Application.ActivePrinter = "Acrobat PDFWriter on FILE:,
>>>>>> PrToFileName:=pPath + vNam"
>>>>>> Kill pPath + vNam 'only PDF left
>>>>>> ' END END
>>>>>>
>>>>>> Help, please.
>>>>>>
>>>>>>
>>>>>
>>>>> The account doing the printing, doesn't have "permission"
>>>>> to access the area used on the D: drive. You'd moved the
>>>>> disk or the data around, and a new account is involved.
>>>> * Yes, i _did_ move things including XLS files around, in fact a lot
>>>> of things..drive X to drive Y; other things..drive W to drive Y.
>>>> Then copied .XLS (etc) files to drive Z.
>>>> Macro fails in exactly the same way on either drive.
>>>>
>>>> OS independent: Win2K, WinXP.
>>>>>
>>>>> The problem probably isn't in the Excel code at all,
>>>>> and the problem is external to the code. Your new
>>>>> environment is doing it.
>>>>>
>>>>> Pure guess,
>>>>> Paul
>>>> Looks like a rather good (plausible) guess.
>>>> So...how would i go about finding sub and sinking same?
>>>
>>> Is D:\ an NTFS or a FAT32 partition ?
>>>
>>> That shouldn't be a problem on FAT32. FAT32 doesn't have permissions.
>>> FAT32 also has a 4GB max file size, and isn't suited to storing your
>>> movie collection. That's a disadvantage of it.
>>>
>>> On NTFS, you could do properties on the areas
>>> in question, then check the Security tab,
>>> to see if the owner is "unknown". The OS can only
>>> know about owners listed in users and accounts
>>> (you're not likely to be on a "domain" at home).
>>> When the OS is installed, it has a long string
>>> of numbers as a prefix for the accounts. And the
>>> "Robert" account on one machine (NTFS ownership)
>>> is not the same as the "Robert" account on a new install.
>>> You can add ownership to individual files, but that's
>>> a pretty painful way to do it.
>>>
>>> The later OSes have "takeown" but I don't know
>>> what the equivalent is for WinXP. The suggestion
>>> here is to use subinacl.exe, available for download.
>>>
>>> https://www.howtogeek.com/forum/topic/xp-takeown-and-cacls
>>>
>>>
>>> http://www.microsoft.com/en-us/download/details.aspx?id=23510&751be11f-ede8-5a0c-058c-2ee190a24fa6=True&e6b34bbe-475b-1abd-2c51-b5034bcdd6d2=True
>>>
>>>
>>>
>>> Another way to study this, at least on WinXP, is with
>>> Process Monitor from Sysinternals. It says "Vista" now,
>>> so the current one may be "too new". The URL for the
>>> older version, is not constructed the way this URL is.
>>>
>>> https://docs.microsoft.com/en-us/sysinternals/downloads/procmon
>>>
>>> The web page for the older version is here. Version 3.1 seems
>>> to be the last for WinXP, if you believe the Requirements
>>> list on the page.
>>>
>>> https://web.archive.org/web/20150117221121/http://technet.microsoft.com:80/en-us/sysinternals/bb896645
>>>
>>>
>>>
>>> I had some trouble with the download link. I hope this works.
>>>
>>>
>>> https://web.archive.org/web/20150208154759if_/http://download.sysinternals.com/files/ProcessMonitor.zip
>>>
>>>
>>>
>>> You start that running, do your (broken) Excel operation,
>>> then see what thing it is trying to do (writefile, createfile)
>>> and guess from that why it's failing. Using the filter option,
>>> allows viewing only WriteFile operations, or viewing only
>>> CreateFile operations. As otherwise, the Process Monitor
>>> program collects too much data for humans to use.
>>>
>>> But using the Properties dialog and security tab in File Explorer,
>>> should be as effective. Process Monitor, is if you need to
>>> construct a brand new theory, based on behavior.
>>>
>>> HTH,
>>> Paul
>> Spent a lot of time with Process Monitor and narrowed it down to the
>> longwinded
>> ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>> ActivePrinter:="Acrobat PDFWriter on FILE:", printtofile:=True, _
>> Collate:=False, PrToFileName:=pPath + vNam
>>
>> Basically, the file name/path is not recognized, even the shortened
>> version
>> Application.ActivePrinter = "Acrobat PDFWriter on FILE:, _
>> PrToFileName:=pPath + vNam"
>> fails for the same reason.
>>
>
> Is your objective to get the code working, as it
> currently exists ?
>
> Or do you just want your output right now, and
> then move on to the next problem ?
>
> The example here, they just pass the whole file name
> as a discrete string. This is an archived USENET discussion
> thread, hosted on a web server.
>
> https://www.pcreview.co.uk/threads/vba-printout.992701/
>
> Sub Macro1()
> Application.activate = "Acrobat PDFWriter sur LPT1:"
> ActiveWindow.SelectedSheets.PrintOut Copies:=1, _
> ActivePrinter:="Acrobat PDFWriter sur LPT1:", _
> PrintToFile:= True, PrToFileName:="C:\test.pdf"
> End Sub
>
> So the
>
> PrToFileName:="C:\test.pdf"
>
> defines where to put the output.
>
> Then the question would be, whether pPath+vNam
> happens to have a space in the resulting string,
> and needs some sort of quotes around it to insulate it.
> You'll notice the C:\test.pdf doesn't have space
> characters in it, to screw up the path.
>
> Paul
   Above looks like what i originally had; will fiddle around to get 
code to work. Can manually print to PDF each PDF result, but rather get 
working code for automated run (about 200 files).

   Thanks.

   Even if above fails,there is another way to get this cat out of it's 
skin.
   Thanks again.
*
   Found PeachEase problem, EXCEL-G@PEACH.EASE.LSOFT.COM authorization 
failure.
   Damn their eyes; they DEMAND 64 bit communication and software.
   Yes, i have the 64-bit Win7 install disk.
   But my hardware does not support a 64-bit OS.
   DOA.


[toc] | [prev] | [next] | [standalone]


#10517

FromPaul <nospam@needed.invalid>
Date2017-10-18 00:29 -0400
Message-ID<os6las$s9t$1@dont-email.me>
In reply to#10515
Robert Baer wrote:

> Found PeachEase problem, EXCEL-G@PEACH.EASE.LSOFT.COM authorization failure.
> 
> Damn their eyes; they DEMAND 64 bit communication and software.
> Yes, i have the 64-bit Win7 install disk.
> But my hardware does not support a 64-bit OS.
> DOA.

What does that mean, exactly. "64 bit communication"

    http://peach.ease.lsoft.com/scripts/wa-PEACH.exe

I'm in. Do I win a prize ?

    https://s1.postimg.org/1qj68en6rz/listserv.gif

This is on a 32-bit computer.

The "you are not authorized" thing, means you have to
subscribe to the group, before it will allow you to view it.

There will be one email message for your new account request.

There will be one email message for your "subscribe attempt".
You can't view a group unless you subscribe to it.

Clicking the link inside each email message, acknowledges you know
of the requests being made via your email address.

Doing this, I felt like Mission Impossible or James Bond or something.
I'll have to see if my trench coat still fits.

    Paul

[toc] | [prev] | [next] | [standalone]


#10521

FromRobert Baer <robertbaer@localnet.com>
Date2017-10-20 21:45 -0700
Message-ID<ohAGB.16317$4X4.15987@fx01.iad>
In reply to#10517
Paul wrote:
> Robert Baer wrote:
>
>> Found PeachEase problem, EXCEL-G@PEACH.EASE.LSOFT.COM authorization
>> failure.
>>
>> Damn their eyes; they DEMAND 64 bit communication and software.
>> Yes, i have the 64-bit Win7 install disk.
>> But my hardware does not support a 64-bit OS.
>> DOA.
>
> What does that mean, exactly. "64 bit communication"
>
>     http://peach.ease.lsoft.com/scripts/wa-PEACH.exe
>
> I'm in. Do I win a prize ?
* I cannot get in.
  Root:http://peach.ease.lsoft.com/scripts/wa-PEACH.exe?INDEX
    Requirements
     A computer with a fixed connection to the Internet
     A static IP address assigned to the computer running LISTSERV
     A Fully Qualified Domain Name for the computer running LISTSERV 
(DNS A Record)
     Web server software on the computer running LISTSERV (For example, 
IIS or Apache)
     An SMTP-compliant mail server through which to send outgoing mail
  Windows 2016, 2012 R2, 2012, 2008 R2, 10, 8, 7
  Supported: LISTSERV 16.0 is available for the x64 architecture only.
*----------------------------------------------^^^--------------^^^^
   So, what was your magic?

>
>     https://s1.postimg.org/1qj68en6rz/listserv.gif
>
> This is on a 32-bit computer.
>
> The "you are not authorized" thing, means you have to
> subscribe to the group, before it will allow you to view it.
*  I know that; subscribed AGES ago.
>
> There will be one email message for your new account request.
* Nope. Ignored.

>
> There will be one email message for your "subscribe attempt".
* Nope.

> You can't view a group unless you subscribe to it.
>
> Clicking the link inside each email message, acknowledges you know
> of the requests being made via your email address.
>
> Doing this, I felt like Mission Impossible or James Bond or something.
> I'll have to see if my trench coat still fits.
>
>     Paul
   What OS did you use?

[toc] | [prev] | [next] | [standalone]


#10522

FromPaul <nospam@needed.invalid>
Date2017-10-21 05:56 -0400
Message-ID<osf5jo$q1s$1@dont-email.me>
In reply to#10521
Robert Baer wrote:

>   What OS did you use?

I just logged in now, using WinXP SP3 x32 and FF 3.0.19.

How is that for crusty ?

*******

Using sqlite3, I can issue this command, using the cookies.sqlite
file found in the Firefox profile.

    http://sqlite.org/download.html   (downloads)

    sqlite3.exe cookies.sqlite .dump

This gives, near the end of the output ...

INSERT INTO moz_cookies VALUES(1,'WALOGIN','1-1-AOM','.peach.ease.lsoft.com','/',1,1,0,1);

I replaced the long numeric strings with the number "1"
to shorten the result. I would not give the verbatim
string, because you could hijack my credentials with it :-)

It's setting a cookie. Do you have cookies
turned off in your browser ? The cookie is
used to "keep" the login credential after the
initial successful login.

    Paul

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | alt.computer


csiph-web