Jump to content
Macro Express Forums

njan1982

Members
  • Posts

    4
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by njan1982

  1. Not sure if this would work for you but I use the ASCII file processing in ME for something similar. It is a file processing loop. You can copy a row or even a whole table and save it to a text file file. Then begin the process loop where it will take each row and can spit them out in any order you wish %t2%, %t4%, %t5%, %t1% ect. Then on to the next row and the process starts over again. I use the method quite a bit and have grown fond of it. You could even use a hot key, lf "x" is pressed, ME spits out %t4% and %t1%. It takes a little bit of playing with, but once you get it you can save yourself a ton of work!!

    i prefer a simple code which populate each variable % t1% to %t200% with trimmed text but how to paste variable that is not null seperated by a down arrow i am new to this loop thing

  2. http://bluepointdesign.com/macros/CRLFandTAB.aspx

    http://bluepointdesign.com/macros/TabularData/Default.aspx

     

    You might want to select them all and process the table. If so check out my white papers above.

     

    There are no dynamic arrays in MEP. And since each hotkey would be a macro and variables would not persist you don't need them. It sounds like you want the user to select several cells and accumulate them then paste all of them back in with another macro. I would have the capture macro take the clipboard contents and save it by appending a text file. Then when you paste it back use the Text File Process to loop though each line.

    i want to reply to all

    there is a standard item code list of 200 items in two a4 page , the format of it is i had in excel

    i will receive the physical written codes in a4 pages all i need to do is select all codes in excel sometimes codes are continuous some time not i need to copy all excel cell codes into the macro code , then when i press it should enter each codes one by one below each line into software erp which is same like excel page.

    i need to define 200 variable i think

    then there is a space in the end of each excel cell so i need to trim the variable and load each cell value into a variable

    when i press a hotkey each variable which is not null need to be pasted one by one separated by a down arrow key-press

     

    where i am stuck is how to define to paste all non blank variable only

    or which approach is fail proof since there may be a maximum of 200 item and sometime i can select a long continuous excel array some time individually cell copy ( i want to select all codes by pressing down control key then all copied cells need to be loaded into macro as a trimmed list ready to be pasted continuously into the erp window one by one followed by down arrow as the erp column will not accept space)

    (i want to speed up this pasting process via a com connection if possible but that seems complicated)

    i will be happy to get a simple code only the part that able to copy a continuous excel column into separate cell values , and the part only paste the copied trimmed cells values one by one

  3. I want to copy a column of excel and paste each cell values one by one below into another excel column where my cusror is,

    ignoring blank cells. I need one by one. paste cell one value then down arrow then cell two value its important. Splitting the array into each cell value is tricky for me and later pasting one by one value

    Please help

    • Like 1
×
×
  • Create New...