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


Groups > microsoft.public.excel.programming > #110509 > unrolled thread

File Path Issue in Excel 2016 for Mac

Started bycolglbo <bcolglbo@gmail.com>
First post2018-03-11 12:27 -0400
Last post2018-04-23 21:07 -0700
Articles 20 on this page of 22 — 6 participants

Back to article view | Back to microsoft.public.excel.programming


Contents

  File Path Issue in Excel 2016 for Mac colglbo <bcolglbo@gmail.com> - 2018-03-11 12:27 -0400
    Re: File Path Issue in Excel 2016 for Mac "Auric__" <not.my.real@email.address> - 2018-03-11 18:40 +0000
      Re: File Path Issue in Excel 2016 for Mac GS <gs@v.invalid> - 2018-03-11 18:16 -0400
        Re: File Path Issue in Excel 2016 for Mac "Auric__" <not.my.real@email.address> - 2018-03-11 22:43 +0000
          Re: File Path Issue in Excel 2016 for Mac GS <gs@v.invalid> - 2018-03-11 18:50 -0400
            Re: File Path Issue in Excel 2016 for Mac "Auric__" <not.my.real@email.address> - 2018-03-12 03:46 +0000
              Re: File Path Issue in Excel 2016 for Mac GS <gs@v.invalid> - 2018-03-12 01:08 -0400
                Re: File Path Issue in Excel 2016 for Mac "Auric__" <not.my.real@email.address> - 2018-03-12 06:00 +0000
                  Re: File Path Issue in Excel 2016 for Mac GS <gs@v.invalid> - 2018-03-12 04:04 -0400
                    Re: File Path Issue in Excel 2016 for Mac "Peter T" <askformy@gmail.com> - 2018-03-14 17:34 +0000
                      Re: File Path Issue in Excel 2016 for Mac GS <gs@v.invalid> - 2018-03-15 02:25 -0400
    Re: File Path Issue in Excel 2016 for Mac Patrick <patrick@nowhere.invalid> - 2018-03-12 07:59 +0100
      Re: File Path Issue in Excel 2016 for Mac colglbo <bcolglbo@gmail.com> - 2018-03-12 07:47 -0400
    Re: File Path Issue in Excel 2016 for Mac Robert Baer <robertbaer@localnet.com> - 2018-04-12 19:22 -0700
      Re: File Path Issue in Excel 2016 for Mac GS <gs@v.invalid> - 2018-04-13 08:46 -0400
        Re: File Path Issue in Excel 2016 for Mac Robert Baer <robertbaer@localnet.com> - 2018-04-16 21:48 -0700
          Re: File Path Issue in Excel 2016 for Mac "Peter T" <askformy@gmail.com> - 2018-04-20 19:50 +0100
            Re: File Path Issue in Excel 2016 for Mac Robert Baer <robertbaer@localnet.com> - 2018-04-21 00:17 -0700
              Re: File Path Issue in Excel 2016 for Mac GS <gs@v.invalid> - 2018-04-21 05:00 -0400
              Re: File Path Issue in Excel 2016 for Mac "Peter T" <askformy@gmail.com> - 2018-04-23 22:19 +0100
      Re: File Path Issue in Excel 2016 for Mac "Peter T" <askformy@gmail.com> - 2018-04-23 22:11 +0100
        Re: File Path Issue in Excel 2016 for Mac Robert Baer <robertbaer@localnet.com> - 2018-04-23 21:07 -0700

Page 1 of 2  [1] 2  Next page →


#110509 — File Path Issue in Excel 2016 for Mac

Fromcolglbo <bcolglbo@gmail.com>
Date2018-03-11 12:27 -0400
SubjectFile Path Issue in Excel 2016 for Mac
Message-ID<g2maaddpsctst3hgn6kt5c9u6kt17gpugf@4ax.com>
I have been using visual basic in Excel 2011 for Mac to open a file
and perform some operations on that file. The code to open the file is

Workbooks.Open Filename:= "Mac Backup:Data Files:Excel Files:Test
File.xlsx"

Mac Backup is the name of a removable drive.

The code has worked fine until I upgraded to Excel 2016 for Mac. Now
when I run the code I get the message "Sorry, we couldn't find Mac
Backup:Data Files:Excel Files:Test File.xlsx."

I have changed the colon to back slash and forward slash and still get
the error message. This same code works fine in Excel 2016 for PC
using the back slash. Apparently something has changed in the file
path structure in the Excel 2016 version for Mac. Any help would be
appreciated.

[toc] | [next] | [standalone]


#110510

From"Auric__" <not.my.real@email.address>
Date2018-03-11 18:40 +0000
Message-ID<XnsA8A276AF9B5F4auricauricauricauric@85.214.115.223>
In reply to#110509
colglbo wrote:

> I have been using visual basic in Excel 2011 for Mac to open a file
> and perform some operations on that file. The code to open the file is
>
> Workbooks.Open Filename:= "Mac Backup:Data Files:Excel Files:Test
> File.xlsx"
>
> Mac Backup is the name of a removable drive.
>
> The code has worked fine until I upgraded to Excel 2016 for Mac. Now
> when I run the code I get the message "Sorry, we couldn't find Mac
> Backup:Data Files:Excel Files:Test File.xlsx."
>
> I have changed the colon to back slash and forward slash and still get
> the error message. This same code works fine in Excel 2016 for PC
> using the back slash. Apparently something has changed in the file
> path structure in the Excel 2016 version for Mac. Any help would be
> appreciated.

Create a new macro-enabled (.xlsm) workbook in the same directory. Put this 
code in a new module:

  Sub whereAmI()
    Cells(1, 1).Value = ActiveWorkbook.Path
  End Sub

A1 now contains the path of the workbook. Update your existing code.

-- 
Are there people in your house right now you'd just love to strangle,
but can't because it's not polite to do that to company?

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


#110511

FromGS <gs@v.invalid>
Date2018-03-11 18:16 -0400
Message-ID<p849rm$65c$1@dont-email.me>
In reply to#110510
>
>   Sub whereAmI()
>     Cells(1, 1).Value = ActiveWorkbook.Path
>   End Sub
>

Just a minor point, but depending on context it's a very important point!

VBA 'best practice' suggests:

   - use ActiveWorkbook only when the code is acting on or referencing a
     workbook other than itself;

   - use ThisWorkbook when code refs the workbook running the code.

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

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


#110512

From"Auric__" <not.my.real@email.address>
Date2018-03-11 22:43 +0000
Message-ID<XnsA8A29FF4B775Eauricauricauricauric@85.214.115.223>
In reply to#110511
GS wrote:

>>   Sub whereAmI()
>>     Cells(1, 1).Value = ActiveWorkbook.Path
>>   End Sub
>
> Just a minor point, but depending on context it's a very important point!
>
> VBA 'best practice' suggests:
>
>    - use ActiveWorkbook only when the code is acting on or referencing a
>      workbook other than itself;
>
>    - use ThisWorkbook when code refs the workbook running the code.

Good point.

-- 
Don't believe everything you think.

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


#110513

FromGS <gs@v.invalid>
Date2018-03-11 18:50 -0400
Message-ID<p84brb$otp$1@dont-email.me>
In reply to#110512
> GS wrote:
>
>>>   Sub whereAmI()
>>>     Cells(1, 1).Value = ActiveWorkbook.Path
>>>   End Sub
>> 
>> Just a minor point, but depending on context it's a very important point!
>> 
>> VBA 'best practice' suggests:
>> 
>>    - use ActiveWorkbook only when the code is acting on or referencing a
>>      workbook other than itself;
>> 
>>    - use ThisWorkbook when code refs the workbook running the code.
>
> Good point.

I figured since you program in other languages that you'd pick up on the 'This' 
part of an object ref-ing itself!

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

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


#110514

From"Auric__" <not.my.real@email.address>
Date2018-03-12 03:46 +0000
Message-ID<XnsA8A2D367AD95Bauricauricauricauric@85.214.115.223>
In reply to#110513
GS wrote:

>> GS wrote:
>>
>>>>   Sub whereAmI()
>>>>     Cells(1, 1).Value = ActiveWorkbook.Path
>>>>   End Sub
>>>
>>> Just a minor point, but depending on context it's a very important point!
>>>
>>> VBA 'best practice' suggests:
>>>
>>>    - use ActiveWorkbook only when the code is acting on or referencing a
>>>      workbook other than itself;
>>>
>>>    - use ThisWorkbook when code refs the workbook running the code.
>>
>> Good point.
>
> I figured since you program in other languages that you'd pick up on the
> 'This' part of an object ref-ing itself!

I just put down the first thing that came to mind, and didn't really put any 
thought into it. Since it's meant to be a one-time-only sorta thing, I'm not 
terribly worried about it. (Also, I'm much more used to Activewhatever, 
because my code is often run from the personal macro workbook rather than the 
workbook being affected.)

-- 
Fear is overrated as a deterrent. Death works much better.

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


#110515

FromGS <gs@v.invalid>
Date2018-03-12 01:08 -0400
Message-ID<p851vr$dj6$1@dont-email.me>
In reply to#110514
> GS wrote:
>
>>> GS wrote:
>>> 
>>>>>   Sub whereAmI()
>>>>>     Cells(1, 1).Value = ActiveWorkbook.Path
>>>>>   End Sub
>>>> 
>>>> Just a minor point, but depending on context it's a very important point!
>>>> 
>>>> VBA 'best practice' suggests:
>>>> 
>>>>    - use ActiveWorkbook only when the code is acting on or referencing a
>>>>      workbook other than itself;
>>>> 
>>>>    - use ThisWorkbook when code refs the workbook running the code.
>>> 
>>> Good point.
>> 
>> I figured since you program in other languages that you'd pick up on the
>> 'This' part of an object ref-ing itself!
>
> I just put down the first thing that came to mind, and didn't really put any 
> thought into it. Since it's meant to be a one-time-only sorta thing, I'm not 
> terribly worried about it. (Also, I'm much more used to Activewhatever, 
> because my code is often run from the personal macro workbook rather than the 
> workbook being affected.)

Yeah, nothing 'wrong' with that; -my stuff in PERSONAL.xls is configured that 
way too! Given the scenario it's perfectly acceptable. Different story, though, 
if the workbook was saved hidden, or was an addin, or Excel had one of its 
common burps during the load process.

Are you aware that if the file gets corrupted the Workbook_Open event may not 
even fire? I stopped using it many ions ago and replaced the open/beforeclose 
events with the autorun macros Auto_Open and Auto_Close and redirect from 
there.

FWIW
I've just got into the habit of following best practice rules in a more strict 
way than most VBAers, more so now due to the strictness in programming in C# 
more recently, but mostly because I'm also a long-time dedicated follower of 
the "Professional Excel Development" principles which also strongly advocate 
following best practice rules.

Your helpful contributions here are appreciated; -I hope you keep following 
thess Excel NG

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

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


#110516

From"Auric__" <not.my.real@email.address>
Date2018-03-12 06:00 +0000
Message-ID<XnsA8A2EA16667FCauricauricauricauric@85.214.115.223>
In reply to#110515
GS wrote:

>> GS wrote:
>>
>>>> GS wrote:
>>>>
>>>>>>   Sub whereAmI()
>>>>>>     Cells(1, 1).Value = ActiveWorkbook.Path
>>>>>>   End Sub
>>>>>
>>>>> Just a minor point, but depending on context it's a very important
>>>>> point!
>>>>>
>>>>> VBA 'best practice' suggests:
>>>>>
>>>>>    - use ActiveWorkbook only when the code is acting on or
>>>>>    referencing a
>>>>>      workbook other than itself;
>>>>>
>>>>>    - use ThisWorkbook when code refs the workbook running the code.
>>>>
>>>> Good point.
>>>
>>> I figured since you program in other languages that you'd pick up on
>>> the 'This' part of an object ref-ing itself!
>>
>> I just put down the first thing that came to mind, and didn't really
>> put any thought into it. Since it's meant to be a one-time-only sorta
>> thing, I'm not terribly worried about it. (Also, I'm much more used to
>> Activewhatever, because my code is often run from the personal macro
>> workbook rather than the workbook being affected.)
>
> Yeah, nothing 'wrong' with that; -my stuff in PERSONAL.xls is configured
> that way too! Given the scenario it's perfectly acceptable. Different
> story, though, if the workbook was saved hidden, or was an addin, or
> Excel had one of its common burps during the load process.
>
> Are you aware that if the file gets corrupted the Workbook_Open event
> may not even fire? I stopped using it many ions ago and replaced the
> open/beforeclose events with the autorun macros Auto_Open and Auto_Close
> and redirect from there.

New one on me. I don't have much that happens in _Open, just something that 
finds which columns hold which data and sets some globals -- but believe me, 
I'd notice PDQ if that macro didn't fire.

> FWIW
> I've just got into the habit of following best practice rules in a more
> strict way than most VBAers, more so now due to the strictness in
> programming in C# more recently, but mostly because I'm also a long-time
> dedicated follower of the "Professional Excel Development" principles
> which also strongly advocate following best practice rules.

On the one hand, I try to do "best practices" when and where feasible (if I 
am aware of said best practices), but on the other hand, I'm not a 
"professional". Shrug.

> Your helpful contributions here are appreciated; -I hope you keep
> following thess Excel NG

I've been posting here since 2003; the odds of me leaving are pretty slim.

-- 
the perfect mix of cute and psycho

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


#110518

FromGS <gs@v.invalid>
Date2018-03-12 04:04 -0400
Message-ID<p85cae$5to$1@dont-email.me>
In reply to#110516
> I've been posting here since 2003; the odds of me leaving are pretty slim.

That's much longer than me! I followed the Classic VB group here back when MS 
scratched the public forums; -don't recall when that was exactly. I've been 
using Excel since v4; -migrating from Lotus. Started into VBA in 2003 and fell 
under the mentorship of one of the authors of the Excel <?> VBA - Programmer to 
Programmer book series. I was asked to do a review for their 1st edition of Pro 
Excel Development and this is where I adopted the best practice principles. I 
migrated to VB6 in 2004; -still consider myself a newbie due to no formal 
training in computers or programming. I did a stint in the school of hard 
knocks in both VBA/VB6, though, which I figure counts for something. These 
forums are a life saver to say the least!

Thanks for sharing...

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

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


#110524

From"Peter T" <askformy@gmail.com>
Date2018-03-14 17:34 +0000
Message-ID<p8bmba$kb1$1@dont-email.me>
In reply to#110518
"GS" <gs@v.invalid> wrote in message
>> I've been posting here since 2003; the odds of me leaving are pretty 
>> slim.
>
> under the mentorship of one of the authors of the Excel <?> VBA - 
> Programmer to Programmer book series. I was asked to do a review for their 
> 1st edition of Pro Excel Development

Well well, it's still there on Amazon, I got a similar request;)

I came here when the 'original' CompuServe forums closed, also where the PED 
authors hung out.

Sadly the 'new' CompuServe forums packed up a few months ago.

Peter T 

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


#110525

FromGS <gs@v.invalid>
Date2018-03-15 02:25 -0400
Message-ID<p8d3kt$av6$1@dont-email.me>
In reply to#110524
> "GS" <gs@v.invalid> wrote in message
>>> I've been posting here since 2003; the odds of me leaving are pretty slim.
>>
>> under the mentorship of one of the authors of the Excel <?> VBA - 
>> Programmer to Programmer book series. I was asked to do a review for their 
>> 1st edition of Pro Excel Development
>
> Well well, it's still there on Amazon, I got a similar request;)
>
> I came here when the 'original' CompuServe forums closed, also where the PED 
> authors hung out.
>
> Sadly the 'new' CompuServe forums packed up a few months ago.
>
> Peter T

Yeah, there's a 2nd edition now, and I suspect it's the last one for awhile 
because some of the original authors aren't available just now. (not confirmed)

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

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


#110517

FromPatrick <patrick@nowhere.invalid>
Date2018-03-12 07:59 +0100
Message-ID<5aa62558$0$9283$426a74cc@news.free.fr>
In reply to#110509
On 2018-03-11 16:27:29 +0000, colglbo said:

> I have been using visual basic in Excel 2011 for Mac to open a file
> and perform some operations on that file. The code to open the file is
> 
> Workbooks.Open Filename:= "Mac Backup:Data Files:Excel Files:Test
> File.xlsx"

The difference between Excel 2011 and Excel 2016 for Mac is that you 
must now write :

Workbooks.Open Filename:= "Mac Backup/Data Files/Excel Files/TestFile.xlsx"

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


#110521

Fromcolglbo <bcolglbo@gmail.com>
Date2018-03-12 07:47 -0400
Message-ID<e1qcadtou83uf932bm5pqp8rjreeqhvru7@4ax.com>
In reply to#110517
On Mon, 12 Mar 2018 07:59:36 +0100, Patrick <patrick@nowhere.invalid>
wrote:

>On 2018-03-11 16:27:29 +0000, colglbo said:
>
>> I have been using visual basic in Excel 2011 for Mac to open a file
>> and perform some operations on that file. The code to open the file is
>> 
>> Workbooks.Open Filename:= "Mac Backup:Data Files:Excel Files:Test
>> File.xlsx"
>
>The difference between Excel 2011 and Excel 2016 for Mac is that you 
>must now write :
>
>Workbooks.Open Filename:= "Mac Backup/Data Files/Excel Files/TestFile.xlsx"

Using the suggestion to find the path solved the problem. The required
path is

Workbooks.Open Filename:= "/Volumes/Mac Backup/Data Files/Excel
Files/TestFile.xlsx"

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


#110574

FromRobert Baer <robertbaer@localnet.com>
Date2018-04-12 19:22 -0700
Message-ID<xvUzC.19673$q_2.14995@fx17.iad>
In reply to#110509
colglbo wrote:
> I have been using visual basic in Excel 2011 for Mac to open a file
> and perform some operations on that file. The code to open the file is
>
> Workbooks.Open Filename:= "Mac Backup:Data Files:Excel Files:Test
> File.xlsx"
>
> Mac Backup is the name of a removable drive.
>
> The code has worked fine until I upgraded to Excel 2016 for Mac. Now
> when I run the code I get the message "Sorry, we couldn't find Mac
> Backup:Data Files:Excel Files:Test File.xlsx."
>
> I have changed the colon to back slash and forward slash and still get
> the error message. This same code works fine in Excel 2016 for PC
> using the back slash. Apparently something has changed in the file
> path structure in the Excel 2016 version for Mac. Any help would be
> appreciated.
>
   Typical M$ garbage - remove useful functionality and say nothing.

   They totally diddled file open/write as follows:
     ActivePrinter = "Acrobat PDFWriter on FILE:"
' Above sets printer in Excel 2003; will crash in Excel 2010.
' In "modern" defective Excel apps, following prints to default as a
'   file AND prompts file name; file in printer format, NOT in PDF format.
     ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
     ActivePrinter:="Acrobat PDFWriter on FILE:", PrintToFile:=True, _
     Collate:=False, PrToFilename:=pPath + vNam
     Kill pPath + vNam   'only PDF left

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


#110575

FromGS <gs@v.invalid>
Date2018-04-13 08:46 -0400
Message-ID<paq8qj$ht1$1@dont-email.me>
In reply to#110574
> colglbo wrote:
>> I have been using visual basic in Excel 2011 for Mac to open a file
>> and perform some operations on that file. The code to open the file is
>>
>> Workbooks.Open Filename:= "Mac Backup:Data Files:Excel Files:Test
>> File.xlsx"
>>
>> Mac Backup is the name of a removable drive.
>>
>> The code has worked fine until I upgraded to Excel 2016 for Mac. Now
>> when I run the code I get the message "Sorry, we couldn't find Mac
>> Backup:Data Files:Excel Files:Test File.xlsx."
>>
>> I have changed the colon to back slash and forward slash and still get
>> the error message. This same code works fine in Excel 2016 for PC
>> using the back slash. Apparently something has changed in the file
>> path structure in the Excel 2016 version for Mac. Any help would be
>> appreciated.
>>
>    Typical M$ garbage - remove useful functionality and say nothing.
>
>    They totally diddled file open/write as follows:
>      ActivePrinter = "Acrobat PDFWriter on FILE:"
> ' Above sets printer in Excel 2003; will crash in Excel 2010.
> ' In "modern" defective Excel apps, following prints to default as a
> '   file AND prompts file name; file in printer format, NOT in PDF format.
>      ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>      ActivePrinter:="Acrobat PDFWriter on FILE:", PrintToFile:=True, _
>      Collate:=False, PrToFilename:=pPath + vNam
>      Kill pPath + vNam   'only PDF left

Note that VBA6 is used up to v2007; beginning with v2010 VBA7 is used for all 
(x86/x64) editions of MSO.

FWIW
Also, beginning with v2007 Office you can generate PDFs directly using SaveAs 
FixedFormat and choose XPS or PDF.

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

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


#110582

FromRobert Baer <robertbaer@localnet.com>
Date2018-04-16 21:48 -0700
Message-ID<L0fBC.1296$4M6.107@fx27.iad>
In reply to#110575
GS wrote:
>> colglbo wrote:
>>> I have been using visual basic in Excel 2011 for Mac to open a file
>>> and perform some operations on that file. The code to open the file is
>>>
>>> Workbooks.Open Filename:= "Mac Backup:Data Files:Excel Files:Test
>>> File.xlsx"
>>>
>>> Mac Backup is the name of a removable drive.
>>>
>>> The code has worked fine until I upgraded to Excel 2016 for Mac. Now
>>> when I run the code I get the message "Sorry, we couldn't find Mac
>>> Backup:Data Files:Excel Files:Test File.xlsx."
>>>
>>> I have changed the colon to back slash and forward slash and still get
>>> the error message. This same code works fine in Excel 2016 for PC
>>> using the back slash. Apparently something has changed in the file
>>> path structure in the Excel 2016 version for Mac. Any help would be
>>> appreciated.
>>>
>>    Typical M$ garbage - remove useful functionality and say nothing.
>>
>>    They totally diddled file open/write as follows:
>>      ActivePrinter = "Acrobat PDFWriter on FILE:"
>> ' Above sets printer in Excel 2003; will crash in Excel 2010.
>> ' In "modern" defective Excel apps, following prints to default as a
>> '   file AND prompts file name; file in printer format, NOT in PDF
>> format.
>>      ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _
>>      ActivePrinter:="Acrobat PDFWriter on FILE:", PrintToFile:=True, _
>>      Collate:=False, PrToFilename:=pPath + vNam
>>      Kill pPath + vNam   'only PDF left
>
> Note that VBA6 is used up to v2007; beginning with v2010 VBA7 is used
> for all (x86/x64) editions of MSO.
>
> FWIW
> Also, beginning with v2007 Office you can generate PDFs directly using
> SaveAs FixedFormat and choose XPS or PDF.
>
   USEFUL info; Thanks.
   Again, un-documented change(s) that wannabe users have to guess at.
   M$ s SUCH a piece..

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


#110588

From"Peter T" <askformy@gmail.com>
Date2018-04-20 19:50 +0100
Message-ID<pbdcpc$2t0$1@dont-email.me>
In reply to#110582
"Robert Baer" <robertbaer@localnet.com> wrote in message
>>>
>> Note that VBA6 is used up to v2007; beginning with v2010 VBA7 is used
>> for all (x86/x64) editions of MSO.
>>
>> FWIW
>> Also, beginning with v2007 Office you can generate PDFs directly using
>> SaveAs FixedFormat and choose XPS or PDF.
>>
>   USEFUL info; Thanks.
>   Again, un-documented change(s) that wannabe users have to guess at.
>   M$ s SUCH a piece..

Not trying to defend MS but I don't follow why you regard the above as 
'undocumented changes . . . users have to guess at'.

Before each new version the Excel team announce and discuss most planned 
changes. On release a full list of changes, new features and any decremented 
methods, is published on relevant MS sites and widely mirrored and discussed 
elsewhere.

SaveAs PDF or XPS is hard to miss in Excel 2007 when you look at File / 
SaveAs

The introduction of 64bit Office has been since its inception and continues 
to be one of the most widely discussed and documented changes by MS and 
elsewhere. That said if you only ever use 32bit Excel you don't need to know 
anything about it. VBA7 can cater for a few special 64bit requirements 
should you need them, mainly for use with APIs. Otherwise VBA7 is 
effectively VBA6 even in 64bit Excel.

Peter T 

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


#110589

FromRobert Baer <robertbaer@localnet.com>
Date2018-04-21 00:17 -0700
Message-ID<tABCC.3281$go7.2644@fx08.iad>
In reply to#110588
Peter T wrote:
> "Robert Baer" <robertbaer@localnet.com> wrote in message
>>>>
>>> Note that VBA6 is used up to v2007; beginning with v2010 VBA7 is used
>>> for all (x86/x64) editions of MSO.
>>>
>>> FWIW
>>> Also, beginning with v2007 Office you can generate PDFs directly using
>>> SaveAs FixedFormat and choose XPS or PDF.
>>>
>>    USEFUL info; Thanks.
>>    Again, un-documented change(s) that wannabe users have to guess at.
>>    M$ s SUCH a piece..
>
> Not trying to defend MS but I don't follow why you regard the above as
> 'undocumented changes . . . users have to guess at'.
>
> Before each new version the Excel team announce and discuss most planned
> changes. On release a full list of changes, new features and any decremented
> methods, is published on relevant MS sites and widely mirrored and discussed
> elsewhere.
>
> SaveAs PDF or XPS is hard to miss in Excel 2007 when you look at File /
> SaveAs
>
> The introduction of 64bit Office has been since its inception and continues
> to be one of the most widely discussed and documented changes by MS and
> elsewhere. That said if you only ever use 32bit Excel you don't need to know
> anything about it. VBA7 can cater for a few special 64bit requirements
> should you need them, mainly for use with APIs. Otherwise VBA7 is
> effectively VBA6 even in 64bit Excel.
>
> Peter T
>
>
   Excuse me, have NEVER seen any info WRT Excel methods and/or 
procedures. For all practical purposes "help" does not exist.

   Furthermore, i gave code where one can PROGRAMATICALLY choose a 
printer for the app, and then PROGRAMATICALLY print to it and give print 
path if "ON FILE".

   SaveAS etc is NOT an option when multiple instances (in a loop) ae 
desired.

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


#110590

FromGS <gs@v.invalid>
Date2018-04-21 05:00 -0400
Message-ID<pbeuiu$vlo$1@dont-email.me>
In reply to#110589
>    SaveAS etc is NOT an option when multiple instances (in a loop) ae 
> desired.

That can be fully automated!!

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

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


#110593

From"Peter T" <askformy@gmail.com>
Date2018-04-23 22:19 +0100
Message-ID<pblilj$lhu$1@dont-email.me>
In reply to#110589
"Robert Baer" <robertbaer@localnet.com> wrote in message
> Peter T wrote:
>> "Robert Baer" <robertbaer@localnet.com> wrote in message
>>>>>
>>>> Note that VBA6 is used up to v2007; beginning with v2010 VBA7 is used
>>>> for all (x86/x64) editions of MSO.
>>>>
>>>> FWIW
>>>> Also, beginning with v2007 Office you can generate PDFs directly using
>>>> SaveAs FixedFormat and choose XPS or PDF.
>>>>
>>>    USEFUL info; Thanks.
>>>    Again, un-documented change(s) that wannabe users have to guess at.
>>>    M$ s SUCH a piece..
>>
>> Not trying to defend MS but I don't follow why you regard the above as
>> 'undocumented changes . . . users have to guess at'.
>>
>> Before each new version the Excel team announce and discuss most planned
>> changes. On release a full list of changes, new features and any
>> decremented
>> methods, is published on relevant MS sites and widely mirrored and
>> discussed
>> elsewhere.
>>
>> SaveAs PDF or XPS is hard to miss in Excel 2007 when you look at File /
>> SaveAs
>>
>> The introduction of 64bit Office has been since its inception and
>> continues
>> to be one of the most widely discussed and documented changes by MS and
>> elsewhere. That said if you only ever use 32bit Excel you don't need to
>> know
>> anything about it. VBA7 can cater for a few special 64bit requirements
>> should you need them, mainly for use with APIs. Otherwise VBA7 is
>> effectively VBA6 even in 64bit Excel.
>>
>> Peter T
>>
>>
>   Excuse me, have NEVER seen any info WRT Excel methods and/or procedures.
> For all practical purposes "help" does not exist.

VBA and the Excel object model are exhaustively documented. For help in the
IDE just select a keyword and press F1, typically it'll take you to what
you're looking for. Look through 'Object Browser", and F1 anything for
further help. Plenty on-line too, eg this for Excel 2010 and similar for 
other versions.

https://msdn.microsoft.com/en-us/library/office/ff846371(v=office.14).aspx

>   Furthermore, i gave code where one can PROGRAMATICALLY choose a printer
> for the app, and then PROGRAMATICALLY print to it and give print path if
> "ON FILE".

I don't follow if you mean something that didn't work for you or a solution 
for others, or why it's relevant to anything I mentioned.

>   SaveAS etc is NOT an option when multiple instances (in a loop) ae
> desired.

Why not...?

Peter T 

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


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | microsoft.public.excel.programming


csiph-web