Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Removing Gridlines in excel, from another application


As above, the macro below works to save a file in Business Objects, then
open it in an excel application, where i want to do some basic
formatting changes.
The changes i cnat make it do are removing gridlines, and changing the
zoom settings it say 85%, as when i record a macro these are done using
the 'activewindow' aspect - and i cant make excel the active window!!!
(have left the activewindow.gridlines in as an example, but it wont
work.)


Sub GoodrichExport()

ActiveDocument.SaveAs ("\\lvl-x-user\Crossgate Shared Area\Corporate
Sales\Tim\" & "Tim" & "_" & Format(Date, "yymmdd") & ".xls")
Set xlsApp = CreateObject("Excel.Application")
xlsApp.Visible = True
xlsApp.Workbooks.Open ("\\lvl-x-user\Crossgate Shared Area\Corporate
Sales\Tim\" & "Tim" & "_" & Format(Date, "yymmdd") & ".xls")

With xlsApp
..Worksheets("New").Activate

ActiveWindow.DisplayGridlines = False

End With

End Sub


--
iambalrog
------------------------------------------------------------------------
iambalrog's Profile: http://www.excelforum.com/member.php...o&userid=26977
View this thread: http://www.excelforum.com/showthread...hreadid=553312

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing patterns without removing gridlines pennyb9 Excel Discussion (Misc queries) 1 July 11th 07 02:43 AM
Restoring Excel gridlines after removing background shading? Wisconsin Jon Excel Discussion (Misc queries) 2 June 18th 07 09:09 PM
Removing Gridlines Office Jnr Excel Discussion (Misc queries) 3 December 13th 06 11:30 PM
removing gridlines in Excel spreadsheet JUNE BUG New Users to Excel 1 May 5th 06 03:36 PM
Selectively removing gridlines in excel John Lavigne Excel Discussion (Misc queries) 3 December 16th 04 12:27 AM


All times are GMT +1. The time now is 11:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"