Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    434
    you're right, this is my sub

    Code:
    Private Sub Linkedin_Click()
    
    Shell ("C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe https://www.facebook.com --profile-directory= Profile 1")
    
    
    End Sub
    i get no error, but nothing at all, it does nothing

  2. #17
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    434
    i'll try that too, hoping no new profile

  3. #18
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Not with the profile, as it keeps telling me it cannot find it?, without, Yes, works fine.
    I do not use Edge, so no idea what my profile should be. I googled the location, which is buried in Appdata\Local, but that is about it.

    O/P needs to do some work surely?

    We have another member here who flounced off to AWF and asked the same question, as they did not want to do any of the work themselves,
    Was offered some amendment to the code they found, then complained it did not compile. Not prepared to do any work themself, even when offered something to try
    Now on my IL on both sites.

    I am not going to set up Edge just to get this working. I never use it, so not going to waste my time.

    Edit: Just got it working with Profile 2 ?
    Code:
    shell("C:\Program Files\Microsoft\Edge\Application\msedge.exe www.bbc.co.uk --profile-directory=Profile 2")
    Removed space from in front of Profile 2
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #19
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    There is an odd thing about the profile that I read somewhere. It can be reported as Profile 2 when it is really something else - some sort of disconnect between the folder name and the profile name, methinks. That's why you have to read the edge://version page.

    There's nothing to "set up" re Edge - it's just there. I don't use it either, as a rule.
    @diegomarino - suggest you solve this in stages: get Edge to open up from your code. At least then you know you have the right path to the application.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #20
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    No, when it opened, I hovered over the pic icon, and that showed Profile 2. I also have a Profile 1.
    So no space should be after the = for the profile argument.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #21
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    434
    THAT'S IT!

    Code:
    Shell ("C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe " & Me.Linkedin & "  --profile-directory=""Profile 1""")
    Tested with two different "linkedin", i opened the profile 2 edge and it gets me to profile 1 to the correct url!! thanks!

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Make an excel from an ms edge web select
    By diegomarino in forum Access
    Replies: 9
    Last Post: 06-28-2022, 10:54 AM
  2. Replies: 1
    Last Post: 04-06-2020, 02:52 AM
  3. Replies: 2
    Last Post: 06-27-2018, 02:27 PM
  4. Microsoft Edge and this forum
    By gem1204 in forum Access
    Replies: 3
    Last Post: 04-07-2016, 06:20 PM
  5. Replies: 1
    Last Post: 07-20-2012, 05:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums