Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unique Excel Web Page / Macro situation - HELP!

Here's my situation: I work in Human Resources and am developing a wa
to post our company's open job positions on our company intranet.
Without purchasing any specialized software, I figured an easy way t
do this would be to publish an Excel .htm page on the Intranet.

I've created the Excel web file with the .htm extension and to edit i
I simply open it from within Excel or right-click Open With
Microsoft Excel. The file appears to be a regular Excel file.
However, when launched directly, the file opens in Internet Explorer.
Great...just how I want it. However...

Each job posting has a "Status" column in which I've written a formul
to automatically calculate the "Status" of the current posting based o
today's date and the positions "Date Posted". If more than 30 day
old, the position's Status will change to "Archived" In order to kee
track of the old positions we've posted, we don't want to simply delet
the entries from the sheet. I figured I could just use an AutoFilte
to hide the rows I didn't want on the final output .htm file. Thi
works great. However...

The .htm file is static, and I need the file to be updated every day t
automatically change the status column and update the filter to exclud
any unwanted positions from the .htm file on the web. I can't seem t
come up with the way to do this. I've thought of several ways, bu
these aren't proving to be good solutions:

- Write a macro contained within the .htm file that auto-starts.
wrote some code that performs the filter and save into a "Private Su
Workbook_Open()" sub, and even assigned a trusted digital signature t
it so it wouldn't prompt me to "Enable Macros" every time. The macr
runs whenever I open the workbook - AS EXCEL. It wil NOT run wheneve
I open the file from the Intranet (as a .htm file), thereby leaving th
.htm as a static, unupdated file.

- I thought about writing a simple batch script that will open the .ht
file AS Excel, and then putting this batch script on my proces
scheduler on my own computer and leaving my computer on all the time.
This isn't a good way to do it I'm guessing, not to mention I don'
know how to write the batch script syntax to open the HTM file withi
Excel instead of Internet Explorer.


Does anyone know of a good way to do this? If you need the code tha
is being executed upon Workbook Open, it is:

Private Sub Workbook_Open()

'Filters "Status Filter" column to hide all Archive and Future Rows
Range("E4:E5").Select
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:="x"
Columns("D:E").Select
Range("E1").Activate
Selection.EntireColumn.Hidden = True
Range("A1").Select
ActiveWorkbook.Save

End Sub

Like I said, that macro works fine. It's triggering it that is th
problem. Any help would be greatly appreciated

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unique Excel Web Page / Macro situation - HELP!

Can anyone help me with this please

--
Message posted from http://www.ExcelForum.com

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
How do I keep all page footers unique with a page number on all pa Keys2thecitY Excel Discussion (Misc queries) 1 September 8th 09 04:41 PM
Unique Footer for each page in worksheet with a page number Keys2thecitY Excel Worksheet Functions 0 September 7th 09 06:06 AM
Page View situation Jacquem New Users to Excel 0 July 2nd 07 06:52 PM
complex excel situation garrettinil Excel Worksheet Functions 4 September 27th 06 10:43 PM
GET UNIQUE ROWS FROM ONE PAGE TO ANOTHER mstrouble81 Excel Discussion (Misc queries) 13 December 22nd 05 12:26 PM


All times are GMT +1. The time now is 07:36 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"