Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
gopal5879
Creator
Creator

Need help about a macro to write to custom template excel file

Can some one help or guide me  about a macro to write to an existing custom excel file with cell having default values.

Excel cell can have list of default values TRUE/FALSE.  

Labels (1)
1 Solution

Accepted Solutions
gopal5879
Creator
Creator
Author

Thanks a lot Fabian

View solution in original post

3 Replies
QFabian
MVP
MVP

Hi, try this as a start :

sub edit
set appExcel = CreateObject("Excel.Application")
appExcel.Visible = true
appExcel.WorkBooks.open ("C:\Users\Fabian\Desktop\excel to edit.xlsx")
appExcel.ActiveSheet.Cells(1,1).Activate
appExcel.ActiveCell.FormulaR1C1 = "TRUE"
appExcel.ActiveWorkbook.SaveAs "C:\Users\Fabian\Desktop\edited excel.xlsx"
appExcel.Quit
end sub

 

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
QFabian
MVP
MVP

Hi, again, the attached files are from Qlik, old ones, but very usefull about macros.

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
gopal5879
Creator
Creator
Author

Thanks a lot Fabian