KHTMFile πŸ’Ύ
1.27K subscribers
1.18K photos
341 videos
386 files
465 links
Subscribe PSD AI CDR
Download Telegram
αž€αžΆαžαŸ‹αž˜αŸ‰αžΌαžαž•αŸ’αžŠαžΆαž…αŸ‹αž’αž€αŸ’αžŸαžš





PDF Code 1.txt

Sub SaveAsPDF()
Dim invoiceNo As String
Dim customerName As String
Dim fname As String
Dim filePath As Variant

' Get invoice number and customer name from specific cells
invoiceNo = Range("H10").Value
customerName = Range("C10").Value

' Construct file name
fname = invoiceNo & " - " & customerName

' Prompt the user to select the save location and filename
filePath = Application.GetSaveAsFilename(InitialFileName:=fname, _
FileFilter:="PDF Files (*.pdf), *.pdf", _
Title:="Save As PDF")

' Check if the user canceled the dialog
If filePath = False Then
MsgBox "Operation canceled.", vbExclamation
Exit Sub
End If

' Export the PO Template sheet as PDF
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=filePath, _
IgnorePrintAreas:=False

' Display confirmation message
MsgBox "PDF file saved successfully.", vbInformation
End Sub


PDF Code 2.txt

Sub SaveAsPDF()

Dim invoiceNo As String
Dim customerName As String
Dim fname As String
Dim Path As String

' Get invoice number and customer name from specific cells

invoiceNo = Range("F6").Value
customerName = Range("B10").Value

' Construct file name
fname = invoiceNo & " - " & customerName

' Specify file path
Path = "C:\Users\TAHA\Documents\YT\Short\"

' Check if the specified path exists
If Dir(Path, vbDirectory) = "" Then
MsgBox "The specified path does not exist.", vbExclamation
Exit Sub
End If


' Export active sheet as PDF
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
ignoreprintareas:=False, _
fileName:=Path & fname

' Display confirmation message
MsgBox "PDF file saved successfully.", vbInformation

End Sub

VBA Code (Create New Invoice).txt

Sub CreateNewInvoice()
invoiceno = Range("E3")
Range("b3,a9:d19,e5").ClearContents
MsgBox "Your Next Invoice No. is " & invoiceno + 1
Range("E3") = invoiceno + 1
ThisWorkbook.Save


End Sub

VBA Code (Save as PDF).txt


Sub SaveAsPDF()
InvoiceNo = Range("E3")
customername = Range("B3")
Path = "C:\Users\Back-UPS\Documents\Invoice\"
fname = InvoiceNo & " - " & customername

ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, ignoreprintareas:=False, Filename:=path & fname

End Sub
#αž‚αž·αžαžŸαž·αž“
❀1
αžαž˜αŸ’αž›αŸƒαžαŸ’αž„αŸƒαž“αŸαŸ‡!
αž”αž“αŸ’αžαŸ‚αž˜αž€αž“αŸ’αž›αŸ‚αž„αž•αŸ’αž‘αž»αž€αž―αž€αžŸαžΆαžš Π‘DR file αžŠαŸ„αž™αž”αŸ’αžšαžΎαž”αŸ‚αž”αžαŸ’αž›αŸ‡αŸ— αžŸαž˜αŸ’αžšαžΆαž”αŸ‹αž’αŸ’αžœαžΎαž€αŸ’αž“αž»αž„αž€αžΆαžšαžŸαŸŠαŸ‚ សើវើ αž•αŸ’αžŸαŸαž„αŸ—αž‚αŸ’αž“αžΆαžαŸ‚αž˜αŸ’αžŠαž„ αž”αŸ’αžšαžΎαž–αŸαž›αžαŸ’αž›αžΈαž‡αžΆαž„αž˜αž»αž“αŸ” #Coreldraw
πŸ‘1
This media is not supported in your browser
VIEW IN TELEGRAM
Invoice αžŸαž˜αŸ’αžšαžΆαž”αŸ‹αž–αŸ’αžšαžΈαž“ αžŸαžšαžŸαŸαžšαžαŸ‚αž˜αŸ’αžŠαž„αžšαž½αž…αžŸαŸ’αžšαŸαž… ✍️✍️ #excel
❀4
This media is not supported in your browser
VIEW IN TELEGRAM
#2 Invoice αžŸαž˜αŸ’αžšαžΆαž”αŸ‹αž–αŸ’αžšαžΈαž“ αžŸαžšαžŸαŸαžšαžαŸ‚αž˜αŸ’αžŠαž„αžšαž½αž…αžŸαŸ’αžšαŸαž… αžŠαŸ„αž™αž”αŸ’αžšαžΎ Datalist αž”αžΎαž”αž„αŸ—αžαŸ’αžšαžΌαžœαž€αžΆαžšαž†αžΆαžαž˜αž€ αžαŸ’αžšαžΉαž˜αžαŸ‚ $5 β˜•οΈβœοΈβœ…πŸ‡°πŸ‡­ αž—αžΆαžŸαžΆαžαŸ’αž˜αŸ‚αžš
❀1
Forwarded from KHTMFile πŸ’Ύ
This media is not supported in your browser
VIEW IN TELEGRAM
αžšαž”αŸ€αž”αž‚αžΌαžŸ αž‡αŸ’αžšαž»αž„αžœαž·αž‰ αž“αŸƒ File BitmapαŸ” αž“αžΌαžœαž€αŸ’αž“αž»αž„ Corelraw αž›αžΏαž“αžŽαžΆαžŸαŸ‹ αžαŸ’αžšαžΌαžœαž€αžΆαžšαž†αžΆαžαž˜αž€αž”αž„αŸ—αŸ” αž‘αžΆαž‰αž™αž€αž“αžΌαžœαž‘αžΈαž“αŸαŸ‡
// configuration
var apiToken = "YOU_TELEGRAM_TOKEN";
var appUrl = "YOUR_APPSCRIPT_URL";
var apiUrl = "https://api.telegram.org/bot"+apiToken;
var command = {
"/start": "welcome to my bot",
"hi": "hello",
"what is your name?": "my name is devisty bot"
}


// set webhook
function setWebhook(){
var url = apiUrl + "/setwebhook?url="+appUrl;
var res = UrlFetchApp.fetch(url).getContentText();
Logger.log(res);
}


// handle webhook
function doPost(e){
var webhookData = JSON.parse(e.postData.contents);
var from = webhookData.message.from.id;
var text = webhookData.message.text;

if(typeof command[text] == 'undefined'){
var sendText = encodeURIComponent("command not found");
}else{
var sendText = encodeURIComponent(command[text]);
}

var url = apiUrl+"/sendmessage?parse_mode=HTML&chat_id="+from+"&text="+sendText;
var opts = {"muteHttpExceptions": true}
UrlFetchApp.fetch(url, opts).getContentText();
}


function doGet(e){
return ContentService.createTextOutput("Method GET not allowed");
}
❀1

αžŸαž˜αŸ’αžšαžΆαž”αŸ‹αž€αž˜αŸ’αž˜αžœαž·αž’αžΈ Microsoft Excel αžšαž€αŸ’αžŸαžΆαž‡αžΆαž―αž€αžŸαžΆαžš PDF

Sub SaveAsPDFODS()

Dim invoiceno As String
Dim ordersheet As String
Dim customername As String
Dim Path As String
Dim fname As String
Dim OldPA As String

customername = Range("D5").Value
ordersheet = Range("D3").Value
invoiceno = Range("G3").Value

customername = Replace(customername, "\", "_")
customername = Replace(customername, "/", "_")
customername = Replace(customername, ":", "_")
customername = Replace(customername, "*", "_")
customername = Replace(customername, "?", "_")
customername = Replace(customername, """", "_")
customername = Replace(customername, "<", "_")
customername = Replace(customername, ">", "_")
customername = Replace(customername, "|", "_")

Path = "C:\Users\Back-UPS\Documents\Invoice\"
'fname = invoiceno & " - " & customername & ".pdf"
' ? Add OrderSheet into the filename
fname = customername & " - ord" & ordersheet & " - inv" & invoiceno & ".pdf"

OldPA = ActiveSheet.PageSetup.PrintArea
ActiveSheet.PageSetup.PrintArea = "$B$1:$H$47"

With ActiveSheet.PageSetup
.Orientation = xlPortrait
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1

'Center horizontally only
.CenterHorizontally = True
.CenterVertically = False '<<<< MUST BE OFF to push up

'Margins (1 cm top)
.TopMargin = Application.CentimetersToPoints(1) ' 1 cm
.BottomMargin = Application.CentimetersToPoints(0.3) ' 0.3 cm
.LeftMargin = Application.CentimetersToPoints(0.3)
.RightMargin = Application.CentimetersToPoints(0.3)
End With

ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=Path & fname, _
IgnorePrintAreas:=False

ActiveSheet.PageSetup.PrintArea = OldPA

MsgBox "PDF Order Sheet Successfully!", vbInformation

End Sub
❀1
αžšαžΌαž”αž˜αž“αŸ’αžαžαŸ’αž„αŸƒαžαŸ‚αž†αŸ’αž“αžΆαŸ†αžαŸ’αž˜αŸ‚αžš Cell


=CHOOSE(WEEKDAY(NOW()),
"αž’αžΆαž‘αž·αžαŸ’αž™","αž…αŸαž“αŸ’αž‘","αž’αž„αŸ’αž‚αžΆαžš","αž–αž»αž’","αž–αŸ’αžšαž αžŸαŸ’αž”αžαž·αŸ","αžŸαž»αž€αŸ’αžš","αžŸαŸ…αžšαŸ")
& " " &
DAY(NOW()) & " " &
CHOOSE(MONTH(NOW()),
"αž˜αž€αžšαžΆ","αž€αž»αž˜αŸ’αž—αŸˆ","αž˜αžΈαž“αžΆ","មេសអ","αž§αžŸαž—αžΆ","αž˜αž·αžαž»αž“αžΆ",
"αž€αž€αŸ’αž€αžŠαžΆ","សីហអ","αž€αž‰αŸ’αž‰αžΆ","αžαž»αž›αžΆ","αžœαž·αž…αŸ’αž†αž·αž€αžΆ","αž’αŸ’αž“αžΌ")
& " " &
YEAR(NOW()) & " " &
TEXT(NOW(),"hh:mm") & " " &
IF(HOUR(NOW())<12,"αž–αŸ’αžšαžΉαž€","αž›αŸ’αž„αžΆαž…")
❀1
❀1
This media is not supported in your browser
VIEW IN TELEGRAM
αž”αŸ’αžšαŸ‚αž—αžΆαžŸαžΆαžαŸ’αž˜αŸ‚αžš Excel Download
❀2
αž”αžΎαž€αŸ’αž“αž»αž„Cell αž˜αž·αž“αž˜αžΆαž“αžαž˜αŸ’αž›αŸƒαžŸαžΌαž˜αž”αŸ’αžšαžΎαž€αžΌαžŠαž˜αž½αž™αž“αŸαŸ‡αž‡αŸ†αž“αž½αžŸαžœαž·αž‰




Function Translate(text As String, fromLang As String, toLang As String) As String
' If empty cell ? return blank
If Trim(text) = "" Then
Translate = ""
Exit Function
End If

Dim url As String, json As String
url = "https://api.mymemory.translated.net/get?q=" & text & "&langpair=" & fromLang & "|" & toLang

On Error GoTo ErrHandler
json = WorksheetFunction.WebService(url)
Translate = Split(Split(json, """translatedText"":""")(1), """")(0)
Exit Function

ErrHandler:
Translate = ""
End Function