דילוג לתוכן
שימו לב — קטגוריית ארכיון
הנושאים בקטגוריה זו הועברו מארכיון קבוצת גוגל, והמשתמשים המוצגים בהם אינם פעילים בפורום.
לקבלת מענה או לתחילת דיון, מומלץ לפתוח נושא חדש בקטגוריה המתאימה.

מאקרו להזרחה

2024
5 3 0 1
  • תאריך ההודעה המקורית: 28/05/2024 02:22

    שיתפתי כאן בעבר מאקרו להזרחה.
    הוא עושה כמה פעולות:

    1. מחפש את ההזרחה הבאה
    2. אם יש קטע מסומן, הוא מזריח אותו
    3. אם הקטע מוזרח, הוא מבטל את ההזרחה.
      לחיצה נוספת תחפש את ההזרחה הבאה [פונקציה 1]
      ושוב ניתן לבטל את הבא. [פונקציה 3]

    בעבר זה לא עבד בהערות שוליים, עכשיו זה שופר ועובד על הערות שוליים גם כן.
    עוד שיפור: בעבר לאחר שהוא ביטל את ההזרחה, הסימון של המילה נשאר, ואי אפשר
    היה לעבור הלאה אא"כ הוזזתי את הסמן.
    כעת לאחר ביטול ההזרחה הסמן זז אחורה והוא מוכן לפעולת חיפוש הבאה.

    הדבר הזה יעיל מאד למי שרגיל להשתמש בהזרחות לסימון קטעים שצריכם בדיקה, ואח"כ
    עובר ומחפש את הקטעים האלו כדי לטפל.
    הנה המאקרו [לעצמי עשיתי לו קצ"ד של ALT+ב, הם צמודים אחד לשני והאות ב הוא
    באנלית COLOR דהיינו צבע]

    Sub הדגשצהוב()

    ' Check if text is selected
    If Selection.Type = wdSelectionIP Then
        ' No text selected, search and select next highlighted text
        Dim rng As Range
        Set rng = ActiveDocument.Range
    
        ' Set the starting point to the current selection
        rng.Start = Selection.End
    
        ' Find the next highlighted text in the main document
        With rng.Find
            .ClearFormatting
            .Highlight = True
            .Wrap = wdFindStop
            .Execute
        End With
    
        If rng.Find.Found Then
            rng.Select
        Else
            ' If not found in main document, check in footnotes
            Dim ftNote As Footnote
            Dim ftRng As Range
            Dim foundInFootnote As Boolean
            foundInFootnote = False
    
            For Each ftNote In ActiveDocument.Footnotes
                Set ftRng = ftNote.Range
                With ftRng.Find
                    .ClearFormatting
                    .Highlight = True
                    .Wrap = wdFindStop
                    .Execute
                End With
    
                If ftRng.Find.Found Then
                    ftRng.Select
                    foundInFootnote = True
                    Exit For
                End If
            Next ftNote
    
            If Not foundInFootnote Then
                MsgBox "אין עוד טקסט מסומן עד סוף המסמך, כולל הערות שוליים."
            End If
        End If
    Else
        ' Check if the selected range is already highlighted
        If Selection.Range.HighlightColorIndex = wdYellow Then
            ' If highlighted, remove the highlighting
            Selection.Range.HighlightColorIndex = wdNoHighlight
                Selection.MoveRight Unit:=wdCharacter, Count:=1
                  Else
            ' If not highlighted, apply yellow highlighting
            Options.DefaultHighlightColorIndex = wdYellow
            Selection.Range.HighlightColorIndex = wdYellow
        End If
    End If
    

    End Sub

  • תאריך ההודעה המקורית: 28/05/2024 02:22

    שיתפתי כאן בעבר מאקרו להזרחה.
    הוא עושה כמה פעולות:

    1. מחפש את ההזרחה הבאה
    2. אם יש קטע מסומן, הוא מזריח אותו
    3. אם הקטע מוזרח, הוא מבטל את ההזרחה.
      לחיצה נוספת תחפש את ההזרחה הבאה [פונקציה 1]
      ושוב ניתן לבטל את הבא. [פונקציה 3]

    בעבר זה לא עבד בהערות שוליים, עכשיו זה שופר ועובד על הערות שוליים גם כן.
    עוד שיפור: בעבר לאחר שהוא ביטל את ההזרחה, הסימון של המילה נשאר, ואי אפשר
    היה לעבור הלאה אא"כ הוזזתי את הסמן.
    כעת לאחר ביטול ההזרחה הסמן זז אחורה והוא מוכן לפעולת חיפוש הבאה.

    הדבר הזה יעיל מאד למי שרגיל להשתמש בהזרחות לסימון קטעים שצריכם בדיקה, ואח"כ
    עובר ומחפש את הקטעים האלו כדי לטפל.
    הנה המאקרו [לעצמי עשיתי לו קצ"ד של ALT+ב, הם צמודים אחד לשני והאות ב הוא
    באנלית COLOR דהיינו צבע]

    Sub הדגשצהוב()

    ' Check if text is selected
    If Selection.Type = wdSelectionIP Then
        ' No text selected, search and select next highlighted text
        Dim rng As Range
        Set rng = ActiveDocument.Range
    
        ' Set the starting point to the current selection
        rng.Start = Selection.End
    
        ' Find the next highlighted text in the main document
        With rng.Find
            .ClearFormatting
            .Highlight = True
            .Wrap = wdFindStop
            .Execute
        End With
    
        If rng.Find.Found Then
            rng.Select
        Else
            ' If not found in main document, check in footnotes
            Dim ftNote As Footnote
            Dim ftRng As Range
            Dim foundInFootnote As Boolean
            foundInFootnote = False
    
            For Each ftNote In ActiveDocument.Footnotes
                Set ftRng = ftNote.Range
                With ftRng.Find
                    .ClearFormatting
                    .Highlight = True
                    .Wrap = wdFindStop
                    .Execute
                End With
    
                If ftRng.Find.Found Then
                    ftRng.Select
                    foundInFootnote = True
                    Exit For
                End If
            Next ftNote
    
            If Not foundInFootnote Then
                MsgBox "אין עוד טקסט מסומן עד סוף המסמך, כולל הערות שוליים."
            End If
        End If
    Else
        ' Check if the selected range is already highlighted
        If Selection.Range.HighlightColorIndex = wdYellow Then
            ' If highlighted, remove the highlighting
            Selection.Range.HighlightColorIndex = wdNoHighlight
                Selection.MoveRight Unit:=wdCharacter, Count:=1
                  Else
            ' If not highlighted, apply yellow highlighting
            Options.DefaultHighlightColorIndex = wdYellow
            Selection.Range.HighlightColorIndex = wdYellow
        End If
    End If
    

    End Sub

    תאריך ההודעה המקורית: 28/05/2024 02:39

    כל הכבוד!

    איך אני מחליף אותו עם המאקרו הקודם שיש לי כבר? (היה לי שימושי ביותר, ואכן
    מאוד הפריע לי שלא עבר בהערות שוליים).

    ייש"כ

    מאת: [email protected]

  • תאריך ההודעה המקורית: 28/05/2024 02:39

    כל הכבוד!

    איך אני מחליף אותו עם המאקרו הקודם שיש לי כבר? (היה לי שימושי ביותר, ואכן
    מאוד הפריע לי שלא עבר בהערות שוליים).

    ייש"כ

    מאת: [email protected]

    תאריך ההודעה המקורית: 28/05/2024 02:54

    אכתוב כאן איך שותלים את המאקרו בוורד, וכן איך מחליפים

    להעתיק את המאקרו ששלחתי ללוח הגזירים CTRL+C
    תצוגה>פקודות מאקרו>הצג פקודות מאקרו>

    אם יש לך כבר את המאקרו הזה, לבחור [לכתוב בחלונית] הדגש_צהוב

    לבחור אותו ואז להקיש על הכפתור "צעד לתוך"

    המקרו הזה יופיע. לבחור את כל המאקרו [עד המילים END SUB. המילים האלו מופיעים
    אחרי כל מאקרו שברשימה. אז יש לעבור על השורות בזהירות ולוודא שבוחרים רק את
    המאקרו הזה ולא נבחרו בטעות עוד קבוצה של שורות]

    למחוק אותו ע"י מקשה המחיקה DELETE

    אם עדיין אין את המאקרו בגירסה הקודמת שלו,

    לבחור כפתור "צור"

    נפתח חלון עם כל המאקרואים.

    לגלול לתחתית

    להדביק את המאקרו החדש. CTRL+V

    לסגור את החלון. אין צורך ללחוץ על שמירה לפני הסגירה

    --

  • תאריך ההודעה המקורית: 28/05/2024 02:54

    אכתוב כאן איך שותלים את המאקרו בוורד, וכן איך מחליפים

    להעתיק את המאקרו ששלחתי ללוח הגזירים CTRL+C
    תצוגה>פקודות מאקרו>הצג פקודות מאקרו>

    אם יש לך כבר את המאקרו הזה, לבחור [לכתוב בחלונית] הדגש_צהוב

    לבחור אותו ואז להקיש על הכפתור "צעד לתוך"

    המקרו הזה יופיע. לבחור את כל המאקרו [עד המילים END SUB. המילים האלו מופיעים
    אחרי כל מאקרו שברשימה. אז יש לעבור על השורות בזהירות ולוודא שבוחרים רק את
    המאקרו הזה ולא נבחרו בטעות עוד קבוצה של שורות]

    למחוק אותו ע"י מקשה המחיקה DELETE

    אם עדיין אין את המאקרו בגירסה הקודמת שלו,

    לבחור כפתור "צור"

    נפתח חלון עם כל המאקרואים.

    לגלול לתחתית

    להדביק את המאקרו החדש. CTRL+V

    לסגור את החלון. אין צורך ללחוץ על שמירה לפני הסגירה

    --

    תאריך ההודעה המקורית: 28/05/2024 02:57

    👍

    התגובה של יהושע ו בוצעה דרך Gmail
    https://www.google.com/gmail/about/?utm_source=gmail-in-product&utm_medium=et&utm_campaign=emojireactionemail#app

    מאת: [email protected]

    קבצים מצורפים:

  • תאריך ההודעה המקורית: 28/05/2024 02:57

    👍

    התגובה של יהושע ו בוצעה דרך Gmail
    https://www.google.com/gmail/about/?utm_source=gmail-in-product&utm_medium=et&utm_campaign=emojireactionemail#app

    מאת: [email protected]

    קבצים מצורפים:

    תאריך ההודעה המקורית: 28/05/2024 04:20

    יש"כ מאוד עזר לי

     

     

     

    From: יהושע ו [[email protected]]
    Sent: Monday, May 27, 2024 7:57 PM
    To: מהדיר ספרים [[email protected]]
    Cc: עריכה תורנית [[email protected]]
    Subject: Re: [הבית לעורך התורני] מאקרו להזרחה

     

    👍

    התגובה של יהושע ו בוצעה דרך Gmail
    [https://www.google.com/gmail/about/?utm_source=gmail-in-product&utm_medium=et&utm_campaign=emojireactionemail#app]

     

    [[email protected]]>:

  • בעיה בפקודות מאקרו (מצו"ב)

    2024
    1
    1
    0 הצבעות
    1 פוסטים
    0 צפיות
    ש
    תאריך ההודעה המקורית: 07/01/2024 12:11 מישהו יודע מה היא משמעות הסימן הזה (שקופץ בעת נסיון של שימוש במאקרו), וכיצד ניתן לפתור את הבעיה. [image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 07.01.24, 12:11:05 קבצים מצורפים: ‏‏צילום מסך (602).png
  • בעיה בפקודות מאקרו (מצו"ב)

    2024
    2
    0 הצבעות
    2 פוסטים
    0 צפיות
    ש
    תאריך ההודעה המקורית: 07/01/2024 20:27 מתנצל, הבעיה חזרה. אשמח מאוד אם מישהו יוכל להיות בעזרי. [image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 07.01.24, 20:27:26
  • מאקרו

    2024
    5
    0 הצבעות
    5 פוסטים
    0 צפיות
    מ
    תאריך ההודעה המקורית: 30/01/2024 20:35 מאקרו זו אפשרות מובנית בוורד ליצור תכנות של פעולות/רצף פעולות ולהגדיר להם כפתור/מקשי קיצור.
  • 0 הצבעות
    6 פוסטים
    0 צפיות
    א
    תאריך ההודעה המקורית: 12/03/2024 23:33 בתוסף של ר' אליעזר סילבר יש אפשרות כזו מאת: [email protected]
  • 0 הצבעות
    2 פוסטים
    0 צפיות
    א
    תאריך ההודעה המקורית: 27/05/2024 12:05 'ניקוי עיצוב' לא עוזר? כאן: [image: image.png]
  • עזרה ביצירת מאקרו למיון פסקאות

    2024
    2
    0 הצבעות
    2 פוסטים
    0 צפיות
    י
    תאריך ההודעה המקורית: 24/06/2024 22:48 כן בחר כל קבוצה, ולחץ על מיין בתפריט בית ------ Original Message ------ מאת: From "[email protected]" מאת: To "פורום עורכים תורניים" Date י"ח סיוון תשפ"ד 22:34:39 Subject [הבית לעורך התורני] עזרה ביצירת מאקרו למיון פסקאות
  • עזרה בוורד קיצור דרך להזרחה,

    2024
    3
    0 הצבעות
    3 פוסטים
    0 צפיות
    מ
    תאריך ההודעה המקורית: 28/08/2024 14:14 מלבד קיצור הדרך הנ"ל, הכנתי מאקרו להזרחות שעושה עוד פעולה, אם אין משהו מושחר הוא מחפש את ההזרחה הבאה. ואז בלחיצה נוספת אפשר לבטל אותה. זה מאקרו די מורכב. הנה הוא: Sub הדגשצהוב() ' Check if text is selected If Selection.Type = wdSelectionIP Then ' No text selected, search and select next highlighted text Dim rng As Range Dim foundInMainDoc As Boolean Dim foundInFootnote As Boolean foundInMainDoc = False foundInFootnote = False Set rng = ActiveDocument.Range ' Set the starting point to the current selection rng.Start = Selection.End ' Check if selection is in footnotes If Selection.StoryType = wdFootnotesStory Then ' Search in footnotes first foundInFootnote = FindNextHighlightInFootnotes(Selection.End) End If ' If not found in footnotes, search in main document If Not foundInFootnote Then With rng.Find .ClearFormatting .Highlight = True .Wrap = wdFindStop .Forward = True .Execute End With If rng.Find.Found Then rng.Select foundInMainDoc = True Else ' If not found in main document, check in footnotes foundInFootnote = FindNextHighlightInFootnotes(0) End If End If ' If still not found, search from the beginning of the document If Not foundInMainDoc And Not foundInFootnote Then rng.Start = 0 rng.End = Selection.End With rng.Find .ClearFormatting .Highlight = True .Wrap = wdFindStop .Forward = True .Execute End With If rng.Find.Found Then rng.Select foundInMainDoc = True Else ' If still not found, search footnotes from the beginning foundInFootnote = FindNextHighlightInFootnotes(0) End If End If ' If no highlight found in both main document and footnotes If Not foundInMainDoc And Not foundInFootnote Then MsgBox "אין עוד טקסט מסומן עד סוף המסמך, כולל הערות שוליים." End If Else ' Check if the selected range is already highlighted If Selection.Range.HighlightColorIndex = wdYellow Then ' If highlighted, remove the highlighting Selection.Range.HighlightColorIndex = wdNoHighlight Selection.MoveRight Unit:=wdCharacter, Count:=1 Else ' If not highlighted, apply yellow highlighting Options.DefaultHighlightColorIndex = wdYellow Selection.Range.HighlightColorIndex = wdYellow End If End If End Sub Function FindNextHighlightInFootnotes(startPosition As Long) As Boolean Dim ftNote As Footnote Dim ftRng As Range FindNextHighlightInFootnotes = False For Each ftNote In ActiveDocument.Footnotes Set ftRng = ftNote.Range If ftRng.End > startPosition Then ftRng.Start = Max(ftRng.Start, startPosition) With ftRng.Find .ClearFormatting .Highlight = True .Wrap = wdFindStop .Forward = True .Execute End With If ftRng.Find.Found Then ftRng.Select FindNextHighlightInFootnotes = True Exit Function End If End If Next ftNote End Function Function Max(value1 As Long, value2 As Long) As Long If value1 > value2 Then Max = value1 Else Max = value2 End If End Function --
  • שימוש במקשי קיצור בהקלטת מאקרו

    2024
    3
    0 הצבעות
    3 פוסטים
    0 צפיות
    י
    תאריך ההודעה המקורית: 21/11/2024 17:28 אפשר להגדיר סגנון גודל 5 ואח"כ החלף הכל מגודל 5 לסגנון הרצוי מאת: [email protected]

0

מחובר

793

משתמשים

14.1k

נושאים

63.0k

פוסטים