• Login
  • Register
Login
Username:
Password: Lost Password?
 
A sheep, a werewolf and a walrus walk into a bar.
  • Home
  • Search
  • Member List
  • Help
  • My Subs
    • Login
    • Register
    Login
    Username:
    Password: Lost Password?
     
A sheep, a werewolf and a walrus walk into a bar. › Feedback › Site Feedback › Everything re: Tables and this forum.

Linear Mode
Everything re: Tables and this forum.
Neowise Offline
Back in 6,800 years.
Posts: 2,578
Threads: 32
Joined: Jul 2021
#1
02-08-2021, 10:25 PM (This post was last modified: 12-08-2021, 10:13 PM by Neowise.)
Tables and using notpad++ as go between between google sheets and this forum
SpoilerShow Content
Install notepad++ if you have not already.
open notepad++.
We shall now create the macro to do the magic.
I will be writing in a codebox so that forum ignores the codes i will be using.
important, make it so you can read this post and type in notepad++, as you will need to type exactly what is between the inverted commas below, and not cut and paste, as the macro record wont pick that up.
Code:
with notepad open at a new blank documnent, click macro->start recording
then press CRTL+HOME (to return us to the start of the file)
type "[table=30]" and press enter
click search->replace...
click extended search mode
in find what type "\t"
in replace type "[/td][td]"
click replace all
in find what type "\n"
in replace type "[/td][/tr]\n[tr][td]"
click replace all
click close
press CRTL+END and type "[/td][/tr][/table]"
click macro->stop recording
       
click save current recorded macro and name it "make table"
Done....
now to test..
Copy a table from sheets and paste into a blank notepad++
then click macro->make table
If everything went correct you will have a correctly formatted table with an extra /td /tr at the top after table you can trim off.
[/td][/tr]
OrderDateRegionRepItemUnitsUnitCostTotal
1/6/2020EastJonesPencil951.99189.05
1/23/2020CentralKivellBinder5019.99999.5
2/9/2020CentralJardinePencil364.99179.64
2/26/2020CentralGillPen2719.99539.73
3/15/2020WestSorvinoPencil562.99167.44
4/1/2020EastJonesBinder604.99299.4
4/18/2020CentralAndrewsPencil751.99149.25
5/5/2020CentralJardinePencil904.99449.1
5/22/2020WestThompsonPencil321.9963.68
6/8/2020EastJonesBinder608.99539.4
6/25/2020CentralMorganPencil904.99449.1
now that most of the grunt work is done, you can beauitify it by using th for header
OrderDateRegionRepItemUnitsUnitCostTotal
1/6/2020EastJonesPencil951.99189.05
1/23/2020CentralKivellBinder5019.99999.5
2/9/2020CentralJardinePencil364.99179.64
2/26/2020CentralGillPen2719.99539.73
3/15/2020WestSorvinoPencil562.99167.44
4/1/2020EastJonesBinder604.99299.4
4/18/2020CentralAndrewsPencil751.99149.25
5/5/2020CentralJardinePencil904.99449.1
5/22/2020WestThompsonPencil321.9963.68
6/8/2020EastJonesBinder608.99539.4
6/25/2020CentralMorganPencil904.99449.1

Code:
to convert from sheets to here:
prepend [table=30]
find replace
\t with [/td][td]
\n with [/td][/tr]\n[tr][td]
append [/td][/tr][/table]
The following 3 users thanked this post:
• Trigger, Necro, tusk  
Find
Reply
A sheep, a werewolf and a walrus walk into a bar. › Feedback › Site Feedback › Everything re: Tables and this forum.


Messages In This Thread
Everything re: Tables and this forum. - by Neowise - 02-08-2021, 10:25 PM
RE: Tables and using notpad++ as go between between google sheets and this forum. - by Neowise - 02-08-2021, 10:28 PM
RE: Tables and using notpad++ as go between between google sheets and this forum. - by Neowise - 02-08-2021, 10:54 PM
RE: Tables and using notpad++ as go between between google sheets and this forum. - by nothing - 12-08-2021, 08:08 PM
RE: Tables and using notpad++ as go between between google sheets and this forum. - by Neowise - 12-08-2021, 09:59 PM
RE: Everything re: Tables and this forum. - by Necro - 19-08-2021, 07:51 PM
RE: Everything re: Tables and this forum. - by Neowise - 19-08-2021, 11:18 PM
RE: Everything re: Tables and this forum. - by Neowise - 07-09-2021, 03:08 PM
RE: Everything re: Tables and this forum. - by DejaBoo - 04-10-2021, 06:02 PM
RE: Everything re: Tables and this forum. - by Neowise - 04-10-2021, 09:23 PM
RE: Everything re: Tables and this forum. - by DejaBoo - 04-10-2021, 10:50 PM
RE: Everything re: Tables and this forum. - by Neowise - 04-10-2021, 11:37 PM
RE: Everything re: Tables and this forum. - by DejaBoo - 04-10-2021, 11:43 PM
RE: Everything re: Tables and this forum. - by Neowise - 04-10-2021, 09:24 PM
RE: Everything re: Tables and this forum. - by Trigger - 04-10-2021, 06:21 PM
RE: Everything re: Tables and this forum. - by jp liz v1 - 01-01-2022, 08:16 PM
RE: Everything re: Tables and this forum. - by Neowise - 01-01-2022, 09:16 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread:
  • Contact Us
  • Return to Top
  • Lite (Archive) Mode
  • Privacy Policy
Community Forum Software by MyBB
Theme based on design by Rooloo,
But severely customized by Fogies.
Top
All opinions expressed are those of the individual and do not reflect those of the site or it's mods & administrators.