Private Sub CommandButton1_Click()
Dim doc As Word.Document
Set wordapp = CreateObject("word.application")
dosya = Application.GetOpenFilename("Lütfen Dosyayı Seçiniz (*.docx),*.docx;")
If dosya <> "False" Then
MsgBox "Dosya Seçildi."
Else
MsgBox "Dosyayı Seçmediniz!"...
...Application.OnKey "+{F3}"
End Sub
'
Sub CaseChange()
Dim lngType As Long, MyRng As Range
Set MyWd = CreateObject("Word.Application")
Set MyDoc = MyWd.Documents.Add
On Error Resume Next
X = CommandBars.ActionControl.Parameter
On Error GoTo 0
If j > 0 Then X = j...
Sub sell()
Dim sk As Worksheet
Dim u As Range
Set sk = Sheets("sf")
Dim i As Integer
Dim ie As Object
Dim document As HTMLDocument
Set ie = Nothing
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
For i = 2 To sk.Range("c" & Rows.Count).End(xlUp).Row
'sipariş...
...= LCase(fL.GetExtensionName(dosya.Name))
dosya_adi = fL.GetBaseName(dosya)
If Uzanti = "doc" Or Uzanti = "docx" Then
Dim wrdApp As Word.Application
Dim wrdDoc As Word.Document
Set wrdApp = CreateObject("Word.Application")
wrdApp.Documents.Open (dosya)
wrdApp.Visible = True
say =...
selamlar
veri çekmede hata alıyorum yardımcı olabilirmisiniz teşekkürler
Sub sell()
Dim sk As Worksheet
Dim u As Range
Set sk = Sheets("sf")
Dim i As Integer
Dim ie As Object
Dim document As HTMLDocument
Set ie = Nothing
Set ie = CreateObject("InternetExplorer.Application")...
Sub OpenDocFromExcel()
Dim wordapp1 As Word.Application
Dim wordapp2 As Word.Application
Dim myDoc1 As Word.Document
Dim myDoc2 As Word.Document
dosyayolu1 = "C:\Users\a\Desktop\b\11.docx"
dosyayolu2 = "C:\Users\a\Desktop\b\22.docx"
Set wordapp1 = CreateObject("word.Application")
Set...
Bunu denermisiniz.
Sub OpenDocFromExcel()
Dim wordapp1 As Word.Application
Dim wordapp2 As Word.Application
Dim myDoc1 As Word.Document
Dim myDoc2 As Word.Document
dosyayolu1 = ThisWorkbook.Path & "\11.doc"
dosyayolu2 = ThisWorkbook.Path & "\22.doc"
Set wordapp1 =...
...yapmak istiyorum, kullandığım kod aşağıda yardımcı olursanız sevinirim;
Private Sub CommandButton1_Click()
Dim teklif_formu As Word.Application
Set teklif_formu = New Word.Application
teklif_formu.Visible = True
teklif_formu.Activate
teklif_formu.Documents.Add Environ("UserProfile") &...
Herkese merhaba
Buradaki makroyu kullanarak word dosyamdaki sayfaları ayrı belge olarak kaydedeceğim fakat dosyaların isimlerinin de belgede yazan yazıyla adlandırılmasını istiyorum. Şu anki belgemde Mektup birleştirme ile hazırlanmış katılım belgeleri var. Bu belgelerin hepsinde de sadece...
Şablon sabit,
tüm raporlar bir uygulama tarafından tipik şekilde oluşturuluyor.
Sizin daha önce hazırladığınız kod üzerinden deniyorum ama henüz hiç import edemedim.
Sub import_kod()
Dim FSO As Object, dosya As Variant, pdfDoc As PDFDocument, pages As PDFPageCollection
Dim t As...
bu konuda aşağıdaki kodu buldum, mail gövdesini Excel' e kopyalama yapıyor, sorun yok.
benim işlemim bundan sonra başlıyor, excel' e kopyalanan verinin "A" sütununda bir kritere göre (>100) filtre edilmesi, buradan kopyala yapılıp başka sayfaya yapıştırmayı nasıl yapabilir? özetle Outlook...
...VBA ile Word dosyası açmak için önce Word application tanımlaması yapılır.
Örnek
Dim WordApp as object
set WordApp = createobject("Word.Application")
Word referansı eklemek yerine word sınıfı bir değişkene atanmış oldu.
Bu şekilde bir değişkene word programı atanırsa hangi versiyon olursa...
...If .Show <> 0 Then
dosyaYolu = .SelectedItems(1)
Dim wrdApp As Object
Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = True
Dim wrdDoc As Object
Set wrdDoc =...
...- Firma Adının ilk kelimesini
'yol = Environ("USERPROFILE") & "\Desktop\"
yol = ThisWorkbook.Path & "\"
Set wd = CreateObject("Word.Application")
wd.Visible = True
wd.documents.Add
Application.Wait (Now + TimeValue("0:00:03"))
sonsat = Cells(Rows.Count, 1).End(3).Row
For x = 1 To sonsat Step...
Hocam bu kod çalıştı 3 saniye yapınca biraz yavaş ama olsun işimi gördü. Hata kodu olan son macro olduğu yerde loopa girdi hatadan çıkamadı o yüzden bunu kullandım. Eline emeğine sağlık. Hakkını helal et.
Birde eğer mümkünse ve bildiğin hazır mail gönderme macrosu varsa iletebilir misin...
...- Firma Adının ilk kelimesini
yol = Environ("USERPROFILE") & "\Desktop\"
yol = ThisWorkbook.Path & "\"
Set wd = CreateObject("Word.Application")
wd.Visible = True
sonsat = Cells(Rows.Count, 1).End(3).Row
For x = 1 To sonsat Step 43
Range("a" & x & ":c" & x + 17).Copy
wd.documents.Add
Tekrar...
...- Firma Adının ilk kelimesini
yol = Environ("USERPROFILE") & "\Desktop\"
yol = ThisWorkbook.Path & "\"
Set wd = CreateObject("Word.Application")
wd.Visible = True
sonsat = Cells(Rows.Count, 1).End(3).Row
For x = 1 To sonsat Step 43
Range("a" & x & ":c" & x + 17).Copy
wd.documents.Add...
...True, False
Sub WD_Aktar()
'BA Bilgilendirme - Firma Adının ilk kelimesini
yol = ThisWorkbook.Path & "\"
Set wd = CreateObject("Word.Application")
wd.Visible = True
sonsat = Cells(Rows.Count, 1).End(3).Row
For x = 1 To sonsat Step 43
Range("a" & x & ":c" & x + 17).Copy
wd.documents.Add...
Sizlere daha iyi bir deneyim sunabilmek icin sitemizde çerez konumlandırmaktayız, web sitemizi kullanmaya devam ettiğinizde çerezler ile toplanan kişisel verileriniz Veri Politikamız / Bilgilendirmelerimizde belirtilen amaçlar ve yöntemlerle mevzuatına uygun olarak kullanılacaktır.