Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Is it possible to automatically run a macro upon a spreadsheet

I would like to save a macro with a specific spreadsheet.

Upon opening that spreadsheet, I would like some
formatting changes to occur automatically (without me
having to manually run the macro):

i)Highlight all text and change the zoom percentage to 75%
ii) Autofit columns (but exclude row 1 when deciding how
big to make the columns).

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Is it possible to automatically run a macro upon a spreadsheet


try using auto_open


such as:


sub auto_open

sheet("my sheet).select
range("a1:a50").select
etc....

end sub


This will run everytime the workbook is opened

--
jmoffa
-----------------------------------------------------------------------
jmoffat's Profile: http://www.excelforum.com/member.php...nfo&userid=115
View this thread: http://www.excelforum.com/showthread.php?threadid=26375

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Is it possible to automatically run a macro upon a spreadsheet

Thank you
-----Original Message-----

try using auto_open


such as:


sub auto_open

sheet("my sheet).select
range("a1:a50").select
etc....

end sub


This will run everytime the workbook is opened.


--
jmoffat
----------------------------------------------------------

--------------
jmoffat's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=1151
View this thread:

http://www.excelforum.com/showthread...hreadid=263758

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Is it possible to automatically run a macro upon a spreadsheet

You can't autofit a column ignoring row1 unless you delete all the entries
in row1, do the autofit, then put the entries back.

--
Regards,
Tom Ogilvy

"Steve" wrote in message
...
Thank you
-----Original Message-----

try using auto_open


such as:


sub auto_open

sheet("my sheet).select
range("a1:a50").select
etc....

end sub


This will run everytime the workbook is opened.


--
jmoffat
----------------------------------------------------------

--------------
jmoffat's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=1151
View this thread:

http://www.excelforum.com/showthread...hreadid=263758

.



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
Automatically generating spreadsheet B from spreadsheet A Clive Excel Discussion (Misc queries) 1 March 23rd 08 01:39 PM
Automatically update spreadsheet from another spreadsheet Cindy Excel Worksheet Functions 3 January 9th 08 06:05 PM
Updating a spreadsheet automatically Duncs Excel Discussion (Misc queries) 1 November 29th 06 07:32 PM
Is there a way to insert a formula, password or macro in an excel spreadsheet that will automatically delete the spreadsheet? oil_driller Excel Discussion (Misc queries) 1 February 8th 05 09:34 AM
How to run a macro automatically when i open my excel spreadsheet Harinath Excel Programming 2 April 8th 04 07:31 AM


All times are GMT +1. The time now is 12:50 AM.

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

About Us

"It's about Microsoft Excel"