Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default running macros in downloaded files

Daily I have to access an .xls file that downloads from the internet
with a different filename each time.

I want to write a macro that will delete info that I don't need and
adjust formatting that I want for this file. I think I can come up
with the meat of the code but how do I get it to work on the downloaded
file each time I download it?

I would prefer that it didn't change the file instantaneously as I
would like to verify the file first. I would like a command button to
pop up to start the process. Am I wishing for too much? I am not a
very good programmer yet so please keep that in mind when proposing
suggestions.

Thank you all very much!


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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default running macros in downloaded files

Can nobody help with this?!?



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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default running macros in downloaded files

You're talking about an Excel Workbook, with some macros, that at the push
of a button opens and formats another workbook.

From what I gather, you may already have the workbook open.

Here's something to work with:
Sub testit()
Dim wkbDest As Workbook

On Error GoTo e
Set wkbDest = Workbooks("Book2.xls")
On Error GoTo 0

With wkbDest.Worksheets(1)
.Rows(1).Interior.ColorIndex = 34
End With

Exit Sub

e: Workbooks.Open "C:\T\Book2.xls"
Resume
End Sub



"blueshot" wrote in message
...
Daily I have to access an .xls file that downloads from the internet
with a different filename each time.

I want to write a macro that will delete info that I don't need and
adjust formatting that I want for this file. I think I can come up
with the meat of the code but how do I get it to work on the downloaded
file each time I download it?

I would prefer that it didn't change the file instantaneously as I
would like to verify the file first. I would like a command button to
pop up to start the process. Am I wishing for too much? I am not a
very good programmer yet so please keep that in mind when proposing
suggestions.

Thank you all very much!


---
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 stop Excel from opening all files w/macros & running them BobC Excel Discussion (Misc queries) 4 April 5th 09 08:25 PM
Running Macros Excel Discussion (Misc queries) 1 July 6th 06 04:21 PM
Opening downloaded IE files in Excel Steve H Excel Discussion (Misc queries) 5 March 28th 06 04:57 PM
wHY WON'T MOST DOWNLOADED .XLS FILES OPEN IN VERSION 5.0 ? Al the Elder Excel Discussion (Misc queries) 2 March 4th 05 01:25 AM
Running macros Mike[_34_] Excel Programming 1 July 17th 03 07:35 PM


All times are GMT +1. The time now is 04:07 PM.

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"