עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

הצגת גרפים באקסל מנתונים בקבצי CSV. לא מצליח לייבא את הקבצים עם VBA. הצילו :(

Featured Replies

פורסם

היי.

שלפתי מקבצי לוג גדולים מאוד של שרת מסויים נתונים רלוונטים ויצרתי לי עם סקריפט BASH כמה עשרות קבצי CSV (טקסט מופרד בטאבים) שדחיפתם לאקסל לא *אמורה* להיות בעייתית.

בסופו של דבר אני צריך ליצור קובץ אקסל עם מאקרו כך שבלחיצת כפתור אני מייבא את קבצי הטקסט הללו ומציג גרפים בחתכים שונים.

עם בניית הגרפים עצמם בVBA אני אסתדר. אני משום-מה מסתבך ממש עם ייבוא קבצי הטקסט לאקסל.

חשבתי על משהו בסגנון הזה:


dim myPath as String
myPath = "C:\blabalablablab\bla
with Application.FileSearch
.newSearch
.LookIn = myPath
.SearchSubFolders=False
.FileType=msoFileTypeAllFiles

If .Execute() > 0 then 'files found
MsgBox "there were "&.foundFiles.count&" files found."
for i=1 to .FoundFiles.Count

Workbooks.OpenText Filename:=.FoundFiles(i), origin:=xlWindows, DataType:=xlDelimited, Tab:=True
?????????

next i
Else
MsgBox "There were no files found."
End If
End With

עכשיו, בגדול הפקודה openText עובדת יפה ממש, אבל הבעיה היא שהיא מייבאת כל קובץ לWorkBook חדש (קובץ אקסל חדש). אני צריך שהיא תייבא לתוך גליון (workSheet).

ניסיתי יום שלם לעקוף את זה ולנסות לבצע המרה כלשהי ממחברת לגליון באמצעות VBA. יש למישהו רעיון או אפילו יכול להשלים לי את הקוד שם? אני ממש אובד עצות כבר.

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.