+ Reply to Thread
Results 1 to 7 of 7

Pasting from Explorer or Firefox

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Pasting from Explorer or Firefox

    I have the following in a macro

    Please Login or Register  to view this content.
    I'm sure it could be tidied a lot as well but my problem is this works if i copy the data from Internet Explorer but if i copy from firefox it does not work as everything is pasted into one cell. This is something that is going to be used by about a dozen people and some use explorer while others use firefox, so it needs to suit both browsers.

    Any help on how i can resolve this?

    I've attached a copy of my sheet if it helps.

    Cheers.
    Attached Files Attached Files
    Last edited by adam2308; 06-03-2009 at 11:45 AM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Pasting from Explorer or Firefox

    Good afternoon adam2308

    I haven't looked at your file as there is a lot of code to look through before I can trust it to run on my system.

    However, if you're grabbing infomration from a website have you considered using Data > Import External Data > New Web Query and importing it that way. If it brings over more information than you require, then import it to a hidden sheet and pick the information off the hidden sheet that you do need. Then it's irrelevant which browser you use.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Re: Pasting from Explorer or Firefox

    Hi,

    Unfortunately a web query wouldn't be suitable for this as the info we want to copy is not in a table on the site we are using so can not be imported plus the URL is different all the time so it would also not be very user friendly for some people.

    I'm thinking at the minute of having two buttons on the message box at the beginning which asks them to choose which browser they are copying from, Explorer or Firefox and run seperate code for each browser type. This is still open to possible error but should solve the problem as long as the user chooses the right button.

    If anyone has any better ideas i would be very grateful to hear.

    Cheers,
    Adam.

  4. #4
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Re: Pasting from Explorer or Firefox

    I think i am going to go with the idea of having two buttons on the message box at the beginning asking which browser. Can someone help me with how to create this message, one button saying 'Explorer' and the other saying 'Firefox'.

  5. #5
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Re: Pasting from Explorer or Firefox

    I think i am going to go with the idea of having two buttons on the message box at the beginning asking which browser. Can someone help me with how to create this message, one button saying 'Explorer' and the other saying 'Firefox'.
    Can anyone help with this please?

  6. #6
    Registered User
    Join Date
    03-13-2008
    Posts
    52

    Re: Pasting from Explorer or Firefox

    Not sure exactly what you're trying to achieve but right at the beginning of your code is the following:

    Please Login or Register  to view this content.
    Have you tried changing "NoHTMLFormatting" to False?

    ~ Liam

  7. #7
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Re: Pasting from Explorer or Firefox

    no, this does not work for me neither. my problem is when i paste from explorer it's fine as it is but if i paste from firefox it goes the table of data i am pasting goes into one cell so i need to paste-special text when pasting from firefox.

    So, what i was thinking was, having a message box at the beginning which asks "which browser have you copied from?" with two button one saying 'Explorer' and the other saying 'Firefox'. If the user clicks 'Explorer' then the current code will be used, if they click 'Firefox' it will use the slightly adapted code to do past special - text instead.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1