Table linked Excel. Convert commas in points

See this thread:

http://forums.Adobe.com/thread/903846?TSTART=0

I set up a GREP search in accordance with the instructions of the Haakenlid to the post 11. It works fine:

_____

Find three numbers preceded by a comma:

,(\d{3})

Replace by a point ("or better IMO one fixed breaking no space," "~ s" in GREP InDesign notation)

.$1

_____

Now I'm wondering if it can be turned into a script that can be added to this script (below) which removes the cell INSET so that the operation can be made with a single script.

I have no experience with scripting, if anyone can help, it would be greatly appreciated.

_____

DESCRIPTION: Updates the linked tables and resets the INSET top and bottom of cells

/*

In this test, I realized there are ways that one associated Excel sheet

will be automatically updated (in fact, I was unable to persuade ID do not update the link so)

I have not actually tested the branch where the link is updated, but I used

This syntax before on the linked graphics, so it should work).

Thus, the script corrects overlays on each associated if Excel sheet or not his

link needs updating. He does not see even from unrelated tables.

*/

myDoc = app.activeDocument;

myLinks = myDoc.links;

myLim = myLinks.length;

for (i = myLim - 1; i > = 0; i--) {}

If (.linkType myLinks [i] == "Microsoft Office Excel 2007 Import Filter") {}

If (myLinks [i] .needed) {}

myLinks [i] .update ();

}

Whether or not we have updated, correct the INSET because it could have been an automatic update

myTable = myLinks [i].parent.tables [0];

myTable.cells.everyItem () .bottomInset = 0;

myTable.cells.everyItem () .topInset = 0;

}

}

That should do it

//DESCRIPTION: Updates any linked tables and resets top and bottom insets of cells

 /*

  In testing this, I realized that there are many ways that a linked Excel sheet

  will auto update (in fact, I was unable to persuade ID not to update the link so

  I haven't actually tested the branch where the link is updated, but I have used

  that syntax before on linked graphics, so it ought to work).

  So, the script fixes the insets on every linked Excel sheet whether or not its

  link needs updating. It does not even see unlinked tables.

 */
myDoc = app.activeDocument;

myLinks = myDoc.links;

myLim = myLinks.length;

for (i = myLim - 1; i >= 0; i--) {

 if (myLinks[i].linkType == "Microsoft Office Excel 2007 Import Filter") {

  if (myLinks[i].needed) {

   myLinks[i].update();

  }

  // Whether or not we updated, fix insets because there might have been an auto update

  myTable = myLinks[i].parent.tables[0];

  myTable.cells.everyItem().bottomInset = 0;
  myTable.cells.everyItem().topInset = 0;

  // changes thousand separators from commas to periods in every cell in the table
  app.findGrepPreferences = null;
  app.changeGrepPreferences = null;
  app.findGrepPreferences.findWhat = ",(\\d{3})";
  app.changeGrepPreferences.changeTo = ".$1";
  myTable.changeGrep();

 }

}

Tags: InDesign

Similar Questions

  • Table linked Excel. Points between thousands.

    I have a linked Excel file that displays the points between thousands and a comma for decimals.

    This is how it is supposed to be; I work a Nordic language.

    However when I place columns of the Excel file as links in InDesign points convert commas and vice versa.

    I thought InDesign was supposed to preserve the formatting of bound data, but it's not.

    What should I do to correct this?

    Steve fairbairn says:

    Thank you, but I do not know if this solves the problem, unless it can be script. Because if not, this means any time to update the Excel file all these manual corrections get wiped out and I have to redo them everywhere.

    Fact \d indicate a number only? Of course, there are a lot of ordinary commas in the body of the text that I don't want to change.

    You must run it whenever you update the document. \d show only numbers. Try the grep search and you will see how it works.

    It can easily be scripted and added to the script that you already use. Post your cell phone embedded script in the InDesign Scripting sub-forum, and we will help you.

    But what I really want to do is to prevent the points converted to commas in the first place.

    I agree. But it seems that Excel-import InDesign is not customizable like that, or designed for internationalization.

  • Linked excel tables in InDesign CS5 update problems and keep the formatting: need help

    I've been using excel to place several tables in my InDesign CS5 document which will require the update on a regular basis. The tables are already formatted in excel, so I will place in InDesign with formatting and you will usually have to reduce proportionally the tables as soon as they are in InDesign CS5. When I'll update the links, it is important the content of the tables as part of current text with larger text and I am unable to "Insert the picture content" or "shrink content proportionally." Nobody knows how to solve this problem or know of another way to link excel with formatting tables and update without having to reformat the table (i.e. to resize the image and text) every time that happens an update? Thank you!!

    Can't do it, sorry. Tables only.

    Bob

  • Limit the size of tables in excel

    Hi everyone, I'm trying to export a table to excel and I am having trouble.

    First of all, I used 'Write to worksheet File.vi' to create a file .xls and has perfectly worked, but now I need to export a table to another sheet of the same xls file (whose name we should be able to choose), so I started to use ActiveX controls.

    I can create the new worksheet with the desired name and write the data into it, but the problem is that it does not show my table only, but also ALL the cells (65536 x VI) with the value # n/a.

    I can solve the problem in one of the dimensions, but not in both entities. This is the first time I use the ActiveX functions (I built this VI with the help of other examples I found in the forum), so I think I'm missing something important.

    What can I do to not show THAT my table?

    Thank you very much for your time and knowledge.

    In addition, you close twice the _Workbook reference, thus generating an error. Here's how to do it. The neck line to Format.vi beach is drawn from here.

    Ben64

  • How to import a table of excel data in my site with DW CC?

    Hello!

    Im trying to insert a table of Excel data in my site, but when I do, the information are delivered with a large number of dirty codes making my Dreamweaver CC accident...

    I'm using File - Import - tabular data.

    Thank you

    Maria

    If you get a lot of formatting and garbage of Excel who causes an accident, you can first save your file as a delimited file and which allows to import into Dreamweaver using the same steps as import it tabular data.  These files are much cleaner and easier to import.

  • Hello, I have just purchace pdf to word and excel converter and pay $ 24, but finally it's completely uselless for me because there no Greek language and convert the file completely incomprehensible... that I can speak for that?

    Hello, I have just purchace pdf to word and excel converter and pay $ 24, but finally it's completely uselless for me because there no Greek language and convert the file completely incomprehensible... that I can speak for that?

    Hi mariax7664987,

    Https://cloud.acrobat.com/ service export to Adobe PDF format is used to change the shape of PDF file format to other formats supported fire. His will not change the language of the PDF text.

    Kind regards
    Nicos

  • Are the paths of the PDF to Excel converter available?

    I have a PDF file consisting of hundreds of pages that I have to match existing records from County Government. The source of data, we subscribe to, allows you to copy and use the information that we need. Making a record is both totally impassable. I can make comparisons in minutes to paste the data into an Excel worksheet.

    The page box text fields that are not aligned, so PDF sock lines and columns is more problamatic.

    I work for a local government agency and have to involve our Department 'IT '. The $ $80 for the PDF to Excel converter is in our budget, but we need to know if the application is suitable for this type of page.

    Can I send a page from the file to get a notice, or perhaps to use a trial version of the converter if available?

    I hope that this fall on friendly ears... Y at - it help?

    There is no test available ExportPDF service.  There is a 30 day return policy.  If you subscribe for a reason, and some are not satisfied, you can request a full refund.

  • CS_SRS. WKTEXT generated value is being generated by commas instead points

    I was able to add a coordinate system: ETRS89 / Portugal TM06

    but the CS_SRS. WKTEXT generated value is being generated by commas instead points.

    is generated as:
    PROJCS ["" ETRS89 / Portugal TM06 ", GEOGCS ["ETRS89", REFERENCE ['European terrestrial reference (EPSG ID 6258) 1989 system', SPHEROID ["GRS 1980 (EPSG ID 7019)"6378137, 298,257222101]], PRIMEM ["Greenwich", 0.000000], UNIT ['decimal degrees', 0.01745329251994328]], PROJECTION [" ETRS89 PT-TM06 "], PARAMETER ['Latitude_Of_Origin', 39,6682583333333], ['Central_Meridian', - 8,13310833333333], PARAMETER ["Scale_Factor", 1], PARAMETER ["False_Easting", 0], ["False_Northing", 0], UNIT ["meter", 1]"]


    but should be like:
    PROJCS ["' ETRS89 / Portugal TM06", GEOGCS ["ETRS89", REFERENCE ["European terrestrial reference 1989 system (EPSG ID 6258)", SPHEROID ["GRS 1980 (EPSG ID 7019)" 6378137, 298.257222101]], PRIMEM ["Greenwich", 0.000000], UNIT ['decimal degrees', 0.01745329251994328]], PROJECTION ["ETRS89 PT-TM06"], PARAMETER ['Latitude_Of_Origin', 39.6682583333333], PARAMETER ['Central_Meridian',-8.13310833333333], ["Scale_Factor", 1], PARAMETER ["False_Easting", 0], ["False_Northing", 0], UNIT ["meter", 1] "]

    and the SDO_CS. VALIDATE_WKT gives FALSE (170).
    I could disable the trigger CS_SRS and update the value in the hand, but is it the right way?

    Hello Rui,

    to disable triggers, according to me, is not a good solution. You must solve the problem for the insert statement. Please have look more closely at the NLS settings during your session when you do the insert. I had good experiences to set the NLS parameter to the American environment. You should be able to influence the outcome of integration by setting the nls_numeric_characters ',' (set NLS_NUMERIC_CHARACTERS = ','.) and make the Insert with this settings. The setting can be changed for the current session only, so it doesn' influence other processes in your instance. After insertion, you can reset the setting, or simply close the session.

    Concerning
    Udo

  • export an oracle table to excel

    Dear Sirs,
    now, I want to send oracle table to excel which is through forms 6i
    and I used the ole2 package but I can send the name of column fields and I want to put in the form of 3 lines as a header for the table name and date

    someone help me please
    Thanks in advance
    Yasser

    EXCEL PRINTS A BIT SLOWLY...

  • How to convert comma-separate-channel digital-table?

    Hello

    My 34401 returns 200 values in a string with this format:

    -1.42979706E-03,+4.46900451E-03,-8.48235088E-04,-2.17539596E-03,-1.34144462E-03,+4.50590958E-03,-9.78340028E-04,-2.31519575E-03,-1.10844497E-03,+4.70200416E-03,-9.83187455E-04,-2.45499555E-03...

    If the numbers are separated by commas and doubles have a point.

    How can I now move that these values in an array of double?

    Thanks for the help

    Hi OnlyOne,

    Be aware that you have configured your computer incorrectly you use German/East Europe locale with "," as decimal separator and try to convert the measurement data using the '. ' instead...

    Well, try a format string of "%.; %f"- and read the help for the format strings!"

    When the different format string also fails, you can try this:

  • Link excel after update table

    I create a link in my InDesign doc to an excel book, pulling in cells 5ish containing a calculated value.

    The excel table turns and InDesign detects a change as usual.

    However, when I update the link of just content disappears. If I re - place a fresh link data display correctly until the next change again.

    No idea how I can solve this problem?

    After a further search, I found this thread Re: InDesign does not correctly import the .xlsx. Any idea is welcome!

    I found that no import "formatted".xlsx did not work as expected.

    I decided to re - save my workbook .xls that matters much better in InDesign

    This method has solved my problem.

  • Two problems of report generation Excel on the decimal point

    Hello good people, I have a problem when you try to generate an Excel report, please see the image below:

    Note that excel removes the decimal separator in the case of the number is > 1 (so that 1 000 becomes 1000) and if the number is<1, excel="" interprets="" it="" as="" a="" text="" string="" (excel="" say="" something="" like="" "the="" number="" in="" this="" cell="" is="" formated="" as="" text,="" or="" is="" preceded="" by="" an="" apostrophe").="" how="" to="" get="" rid="" of="" these="" problems?="" i="" would="" like="" an="" integer="" to="" appear="" as="" the="" same="" integer="" in="" excel,="" and="" any="" number="" less="" than="" one="" to="" be="" interpreted="" as="" a="">

    Thank you very much in advance!

    If I disable the comma localized for this VI, do you think I'll be able to use it as a Subvi without changing the decimal separator of the VI calling parameters?

    My Excel also prefers with a floating point numbers, but I do not understand why numbers lower than that will not be treated as numbers right away?

    Hello OscarJ,

    Unfortunately the position of the decimal point is global, so call VI is affected, too.

    But there are other possible solutions: you can convert your double array in an array of strings. Conversion functions 'number in string' to disable the explicitly localized comma:

    Now, you can add text to your report.

    Your excel seems to interpret "," so that thousands separator and '.' as the decimal separator, so the incorrect number conversion. It seems a little odd since you say he prefers ',' as the decimal separator... There may be something to do with the office report generation tool.

  • Link Excel to InDesign

    We are currently trying to 'automate' a process at work and I'm looking for a way to link a spreadsheet Excel in InDesign (or any product Adobe also), but we need in a unique way, and I'm having a hard time finding answers on how or if this is possible.

    AdobePG4.jpg

    The image above is an example page of what we need. We have companies that come to us for estimates or quotes, and an another spreadsheet excel file is created for each company. We need to tell InDesign (or any program) to automatically link to a spreadsheet and it shoots cell C7 to complete when indicated, C8 to fill place indicated and so on. Thus, it is not as a merger and mailing or to link an Excel file that we want to update when the excel file is updated. We have very specific information that we need in some places. Any suggestions of how we can go about automating this process somehow using the Adobe Suite?

    I'm sorry if my first answer was terse and seemingly contrary to your specfication of "is not as a merge and merge."

    I still think that the fusion of data is your best bet, with a fusion of one record.

    You have to structure your spreadsheet such that all the fields are in the same line (you may need a new worksheet in the same workbook). But this isn't a problem. Then you export this spreadsheet to CSV/TSV.

    Then, you can configure the data against a single file merge and also long names of fields of domain names are identical, you can change the Data Source and you will get new data. Why this solution is annoying? Yes, you must save as Excel and InDesign does not "autoupdate", but he does ' t look like these are the feature you need anyway.

    There is also an XML-based solution. You can mark text with XML tags, and then you can save Excel to Excel XML. Then, you can use an XML translation tool (XSLT, for example) to convert the spreadsheet AS XML in an XML formatted for InDesign, with fields appropriate tag the same tags you used in InDesign. Then you can import the XML file and the data will be inserted in the fields.

    Third, there is the solution of pure script. A script that puts the Excel file in InDesign as a table (because it's the only portable way to read data from an Excel in InDesign; while in Windows, you can use VBA to talk to Excel and read the data and I guess you could do something with Applescript as well, but it would be less clean) then reads the selected table cells and put them in different blocks of text that are marked with script tags indicating that they are getting the data of various cells. There is more development work and could possibly give a smoother workflow, but it seems worth on the solution of merge data.

    I guess the fourth solution is a plugin. I'm not aware of a plugin that takes care of this particular problem, but as it is degenerated to a data merge, it is probably also the degenerate case of a catalog such as a cataloguing as EmData plugin or smart catalog can help out you. But it seems like waaaay overkill and it cost 3 digits (and more).

  • Fill table from excel or another source

    What is the best way to populate a table from an existing Word or Excel file? I'm looking at a long list with name, address, telephone, Web site fields and as to avoid drag / drop or entering the hand. The file should be saved as a comma or tab separated ascii?  Can someone point me in the right direction?

    Thank you
    Joe

    Yes, export to CSV and then import using Insert--> Table--> tabular data.

    Mylenium

  • Several tables to excel file

    Hello

    I get this error when writing two different tables for the same excel file. I think the problem is that the excel file must be closed to be written the new. But I am unable to use the narrow leader because he is not a refnum. Should I use the notifier? If Yes please tell me how to thank you.

    In your VI, you have two instances of "Easy Excel Table.vi" that will run in parallel. This is likely to cause a conflict, because as we open and written on the worksheet, the second will also try to open the same spreadsheet and write at the same time. You must apply a sequential operation in order to ensure that the second simple Excel table can operate only when the first has been completed. The easiest way to do this in your VI is over the error of the first VI on the second VI error, so the second can run only after the first ended.

    Secondly, the second VI also has a function of "New Report.vi", pointing to the same file, so there is a good possibility that this will overwrite your changes. You say there is no reference to the excel file, but in fact there. The right upper bound of the first easy table Excel vi is the report's reference. The wire that directly in the Terminal to the second function Excel easy table report and get rid of the new Report.vi.

Maybe you are looking for

  • Windows 10 battery meter Toolbar - Update December 2015 problem

    Hello So, I finally got the toolbar of DuraShock battery installed on my machine E431 Windows 10 in October 2015. However, I made the mistake of upgrading to the new version that came out December 1, 2015, and now the toolbar has dissappeared as an o

  • On the Satellite A100-646 DVD drive replacement

    Hi all I want to replace the DVD drive on my laptop. (I never solved a lot of problems)Do you know if there is a list of compatibility for the A100-646 model? Model to suggest me? Thank you very much. ConcerningFabrizio

  • Windows 8 key recovery

    Hello At the time I bought the computer laptop z500 (i5), I deleted all the partitions and installed linux on it. Now, I want to go back to windows I know a key recovery will not work. I just need the 8 necessary windows key when installing it. The l

  • Doc XML to a string fails when the string length is greater than 512 bytes.

    I have been using the following code to write an XML string.  If the resulting string is lower to ~ 512 bytes, the string will be created, if > ~ 512 bytes, the routine does not create the string.  Assuming that the doc contains an XML document: Doc

  • Best free antivirus?

    So I am new to Windows, that the best free antivirus to use who will pick things well and secure web browsing? Right now I use AVG but is it better?