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: 
amien
Specialist
Specialist

table.CopyTableToClipboard question

see code below

this gives me this result:

11111

XXXX 22222

33333

but i want

XXXXX 111111

XXXXX 222222

XXXXX 333333

this is the same result that i have with Send to Excel


XLApp.Visible = True

'set XLSheet = XLDoc.Worksheets(TabNumber)
set XLSheet = XLDoc.Worksheets.Add
XLSheet.Activate

set table = ActiveDocument.GetSheetObject(SheetObject)

table.CopyTableToClipboard false 'Copy data to Clipboard
XLSheet.Paste XLSheet.Range("A1") 'Paste data into cell

XLSheet.Cells.WrapText = False

XLsheet.Cells.select
XLsheet.Cells.EntireColumn.AutoFit

XLSheet.Rows("1:1").Select
XLSheet.Cells.AutoFilter
XLsheet.name = TabText


1 Reply
martin59
Specialist II
Specialist II

Hi,

Could you send a part of your QV application for testing.