View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
LauraBorealis
 
Posts: n/a
Default 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