Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert row and column functions #80

Closed
rkpatel33 opened this issue Oct 3, 2014 · 21 comments · Fixed by #1211
Closed

Insert row and column functions #80

rkpatel33 opened this issue Oct 3, 2014 · 21 comments · Fixed by #1211
Milestone

Comments

@rkpatel33
Copy link

No description provided.

@fzumstein fzumstein modified the milestone: v0.2.3 Oct 6, 2014
@fzumstein fzumstein modified the milestones: v0.2.3, v0.2.4 Oct 15, 2014
@fzumstein fzumstein modified the milestones: v0.3.0, v0.3.1 Nov 25, 2014
@fzumstein fzumstein modified the milestones: v0.3.1, v0.3.2, v0.3.3, v0.3.4 Jan 16, 2015
@fzumstein fzumstein modified the milestone: v0.3.4 Mar 9, 2015
@bklaas
Copy link

bklaas commented Nov 9, 2015

There's no description to this issue, but I'm assuming the wording means "add functions to xlwings to enable insert-column and insert-row actions on the spreadsheet". If that's the intention of the issue, +1 to this one.

@rkpatel33
Copy link
Author

+1

Apologies for the brevity, I thought it was self-explanatory.

@fzumstein fzumstein added this to the v0.5.1 milestone Nov 9, 2015
@fzumstein fzumstein modified the milestones: v0.6.0, v0.6.1 Nov 25, 2015
@sanghunka
Copy link

+1
It would be very helpful

@puruzio
Copy link

puruzio commented Oct 27, 2016

+1

@y2kbugger
Copy link
Contributor

Still looking for this.

@Elijas
Copy link

Elijas commented Mar 11, 2017

+1

1 similar comment
@yejiawei1234
Copy link

+1

@Elijas
Copy link

Elijas commented Jun 14, 2017

For anyone wondering - a workaround is to access the native VBA API through excel wings exposed api property of xlwings objects

@mlntr
Copy link

mlntr commented Jul 27, 2017

@Elijas Can you elaborate on how to do that?

@y2kbugger
Copy link
Contributor

Look here for a quick tutorial on how to do that:
http://docs.xlwings.org/en/stable/missing_features.html

@HartBlanc
Copy link

+1

1 similar comment
@manobeeslaar
Copy link

+1

@fzumstein fzumstein modified the milestones: short list, 0.15.9 May 29, 2019
@fzumstein
Copy link
Member

on Windows, this is:

from xlwings.constants import InsertShiftDirection
wb.sheets[0].range("A1").api.Insert(InsertShiftDirection.xlShiftDown)

alternatively, InsertShiftDirection.xlShiftToRight

@manobeeslaar
Copy link

Is there a alternative in MAC as well or is this only for Windows...

@fzumstein
Copy link
Member

yes but I'll need more time to figure out the syntax. As a quick note the MacScript is:

tell application "Microsoft Excel"
	insert into range column 3 of sheet 1
end tell

@fzumstein
Copy link
Member

on mac it is:

wb.sheets[0].api.columns[1-based-index].insert_into_range()

@fzumstein fzumstein modified the milestones: 0.15.9, 0.15.10, 0.15.11 Aug 31, 2019
@fzumstein fzumstein modified the milestones: 0.15.11, 0.16.1 Oct 13, 2019
@fzumstein fzumstein modified the milestones: 0.16.1, 0.16.2, 0.16.3 Dec 1, 2019
@fzumstein fzumstein modified the milestones: 0.16.3, 0.16.4 Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.