Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
ActiveDocument object not recognized
A beginner's question: I am trying to insert a column into col position 2 in a table, which apparently is to be done with the following code: ActiveDocument.Tables(1).Columns(1).Select Selection.InsertColumnsRight However, when I run the macro, the object "Activedocument" is empty. What is wrong here? Thanks! -- LauraBorealis ------------------------------------------------------------------------ LauraBorealis's Profile: http://www.excelforum.com/member.php...o&userid=33789 View this thread: http://www.excelforum.com/showthread...hreadid=541836 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
ActiveDocument object not recognized
I think you want the Word groups, this is Excel.
-- HTH Bob Phillips (remove nothere from the email address if mailing direct) "LauraBorealis" wrote in message news:LauraBorealis.27r95a_1147539002.9499@excelfor um-nospam.com... A beginner's question: I am trying to insert a column into col position 2 in a table, which apparently is to be done with the following code: ActiveDocument.Tables(1).Columns(1).Select Selection.InsertColumnsRight However, when I run the macro, the object "Activedocument" is empty. What is wrong here? Thanks! -- LauraBorealis ------------------------------------------------------------------------ LauraBorealis's Profile: http://www.excelforum.com/member.php...o&userid=33789 View this thread: http://www.excelforum.com/showthread...hreadid=541836 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
ActiveDocument object not recognized
Oh, great. So the code I found isn't even for Excel, but for a table in a Word document? I'll have to pay more attention to the environment when code comes back from an MSDN search. (Why isn't Microsoft consistent across platforms...) -- LauraBorealis ------------------------------------------------------------------------ LauraBorealis's Profile: http://www.excelforum.com/member.php...o&userid=33789 View this thread: http://www.excelforum.com/showthread...hreadid=541836 |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
ActiveDocument object not recognized
To insert a column to the right of the presently selected cell: ActiveCell.Select ActiveCell.Offset(0, 1).Select Selection.EntireColumn.Insert ActiveCell.Offset(0, -1).Select -- LauraBorealis ------------------------------------------------------------------------ LauraBorealis's Profile: http://www.excelforum.com/member.php...o&userid=33789 View this thread: http://www.excelforum.com/showthread...hreadid=541836 |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
ActiveDocument object not recognized
ActiveCell.Offset(0, 1).EntireColumn.Insert
-- HTH Bob Phillips (remove nothere from the email address if mailing direct) "LauraBorealis" wrote in message news:LauraBorealis.27t26y_1147623302.108@excelforu m-nospam.com... To insert a column to the right of the presently selected cell: ActiveCell.Select ActiveCell.Offset(0, 1).Select Selection.EntireColumn.Insert ActiveCell.Offset(0, -1).Select -- LauraBorealis ------------------------------------------------------------------------ LauraBorealis's Profile: http://www.excelforum.com/member.php...o&userid=33789 View this thread: http://www.excelforum.com/showthread...hreadid=541836 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cannor strech embedded word object | Excel Discussion (Misc queries) | |||
Object | Setting up and Configuration of Excel | |||
SET statement tutorial | Excel Discussion (Misc queries) | |||
Creating a Powerpoint object (in XP onwards) with an ActiveWindow | Excel Discussion (Misc queries) | |||
VBA: Where to find Excel Object model? | Excel Discussion (Misc queries) |