• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Search results

  1. I

    Loop through table columns and set the entire column format based on a condition

    Thank you p45Cal for your quick response and help. Powerquery is something new for me, has not yet tried. Just responded if the requirement could be achieved in a more generic way to identify the column if it meets the conversion criteria, and then do the necessary conversion using VBA...
  2. I

    Loop through table columns and set the entire column format based on a condition

    Thank you Marc L for your response and the sample code. It works perfect for the current table that is displayed in the worksheet. However, as mentioned in the sample workbook I would like (to make this more generic) to loop through all the columns in the first row only and identify whether...
  3. I

    Loop through table columns and set the entire column format based on a condition

    Hello There, I have a table with a few columns, and I would like to loop through the first row and all the table columns and check it's values. If a column value satisfies the criteria then set the entire column format to a certain format. There is a small conversion for the column where there...
  4. I

    VBA Code editor display of line numbers

    Hello There, I came across below sample VBA code (attached snapshot). At start of each line code, there is a line/seq number. Can anyone suggest which tool can be used for such display and use of line/sequence numbers? Thank you & regards, Don
  5. I

    Userform.Textbox: Get whole paragraph at cursor position

    Hi @Hui Thank you for your reply. Your last code works perfect. It displays the cursor position's whole paragraph in the Msgbox. I would like the result that is displayed in the MsgBox(ans), gets selected as seen in the attached snapshot. There is no formatting involved. I did the...
  6. I

    Userform.Textbox: Get whole paragraph at cursor position

    Hello @Hui I am trying to include one last functionality: to highlight the paragraph. I tried various options but cannot figure it out and therefore the request for correction (last section in the below code) Could you please help me out? Thank you once again and look forward to hearing from...
  7. I

    Userform.Textbox: Get whole paragraph at cursor position

    Thank you @Hui :awesome::). It works perfect. Learned something new (Split function) from you. Regards, Don
  8. I

    Userform.Textbox: Get whole paragraph at cursor position

    Hello @Hui I tried to debug and understand your code and did the following changes to get the paragraph at the cursor position. It does give the results, but not how you it is on the Textbox, the enter/linefeed is missing. I am replacing all the chr(234) with " ". Somewhere with this it is not...
  9. I

    Delete any data/table exists in a given range.

    Thank you @vletm. I will adapt your solution. Regards, Don
  10. I

    Delete any data/table exists in a given range.

    Hi vletm, Thank you for your response. I suppose to clear contents of that range, and if there exists any table(s) then delete the table(s) as well (Without deleting the actual physical rows or columns) Regards, Don
  11. I

    Delete any data/table exists in a given range.

    Hello There, I have a given range (eg. C10:G40) where the data will be pasted. Before I could do that I am checking if that given range is empty/available. If yes then paste the data. If the given range is not empty then I would like to do delete the data: 1.If there are any normal data. 2...
  12. I

    Userform.Textbox: Get whole paragraph at cursor position

    Yes Hui, I will give it a try and see if I can make it work. Regards, Don
  13. I

    Userform.Textbox: Get whole paragraph at cursor position

    Thank you @Hui for the VBA Code. I can use it for a different purpose. The current solution displays the sentence of the cursor location. Whereas it should display the entire paragraph. The identification of a paragraph is a empty line between 2 paragraphs or a sentence. Thanks again and...
  14. I

    Userform.Textbox: Get whole paragraph at cursor position

    Hi Hui, The textbox property is multi line and word wrap = TRUE. The identification criteria in the textbox could be an empty line/line break. I have attached the below example in the updated sample workbook, for your reference. for example: Section Paragraph or Sentence Identification A...
  15. I

    Userform.Textbox: Rich Textbox

    Hello There, Are there any possibilities to have a rich textbox, and how can this be implemented in a Userform? Any sample workbooks would be helpful. Appreciate your response. Regards, Don
  16. I

    Userform.Textbox: Get whole paragraph at cursor position

    Hello There, I would like to know the VBA code to get the entire paragraph at current cursor position in a userform textbox. The solution for my previous post to get the entire word at cursor postion was provided by @Hui. I tried to modify the code inthere, in vain. : Reference below...
  17. I

    Userform.Textbox: Get the cursor position's entire word

    Thank you Hui for taking the time in providing the code. It works wonderful!:awesome: Regards, Don
  18. I

    Userform.Textbox: Get the cursor position's entire word

    Hi Hui, Thank you for taking the time for providing the code. Please refer the attached snapshot for cases it is giving issues. Look forward to hearing from you. Regards, Don
  19. I

    Userform.Textbox: Get the cursor position's entire word

    Hello There, I have a userform with the Textbox. I would like to know the VBA code to get the entire word where the cursor is placed. I have attached a sample workbook for your reference. Thank you & regards, Don
  20. I

    Display line numbers in a multiline userform textbox

    Thank you Hui for the code. Nice to hear from you after a long time. You code does work untill the TextBoxLineNumber display ends. If I enter more lines in the comment (eg. enter line with wordwrap, enter lines beyond the Comments display - Vertical scrollbar seen), the LineNumber does not...
  21. I

    Display line numbers in a multiline userform textbox

    Hello There, In my Userform I have a multiline textbox. The user can load a file content in this textbox as well as they can enter it manually (multi lines). I would like to display line numbers for each line for this textbox. I am not aware, if this could be displayed in the textbox itself...
  22. I

    Count number of lines & comma seperated values in a VBA String variable

    Hello There, I have a certain chunk of comma seperated values stored in a VBA string variable. In the active worksheet, the user chooses a cell, where it should be pasted. Before it could pasted, I want to make sure there is enough room (rows/columns) for this string value and it does not...
  23. I

    Highlight Current Table Row Selection (Specific Column/Entire row)

    Hi @vletm, Yes, I read your last post. That is why the reply. I don't get paid anything for the work I do. I am sure they would not pay for the 8 hrs fee as well. What I know is, I can buy you a couple of beers. :) But if the change is too much of an effort, then I let it rest. Thank you &...
  24. I

    Highlight Current Table Row Selection (Specific Column/Entire row)

    Hi @vletm Thank you for your reply. The intention was to keep things as is. With the new requirement, the position of the table is changed. With this change then I remembered you and your solution you gave me :) Unfortunately, leaving empty columns/rows before the table is not possible for...
  25. I

    Highlight Current Table Row Selection (Specific Column/Entire row)

    Hello @vletm I have an excel requirement for table row indicator, and I remembered you had provided the solution (wow it has been 2 years) which I am using now. However, I face a minor difficulty. When the table starts from A1, the indicator current row does not work. If I include a blank...
Back
Top