Shortening Facebook addresses on the website

Blasius

New Member
Joined
Mar 27, 2022
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
Hello,
I copy many Internet addresses and FB addresses to the website. To make it look like this, I shorten the web addresses using the code below:

sHTML = VBA.Replace(sHTML, "#WWW#", .Cells(i, 13).Value)
sHTML = VBA.Replace(sHTML, "#WWW1#", Split(.Cells(i, 13).Value, "/")(2))

and you can only see the address to the first slash after ".com/"
But FB has a string of characters with a dash as a whole, or there is often a string of numbers before this slash.
How can you copy a FB address similarly to Internet addresses, i.e. just the name without numbers and other characters, such a "clean" name?
Regardless of macro or function.
And is such a thing even possible?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Could you provide an example?

Unfortunately, from your code I can't figure out what you're talking about.
 
Upvote 0
70 / 5 000

Wyniki tłumaczenia​

Tłumaczenie​

Thanks for showing interest. I'm closing the issue, the solution was Power Query
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top