Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default marco variables or substitution

Tim,

Do a Replace.

Hit Ctrl-H and type in the appropriate values.

--
HTH

-------

Bob Phillips
... looking out across Poole Harbour to the Purbecks


"Tim Gwynn" wrote in message
...
I have a macro that references a month in a file name - it
is in multiple locations in the macro and I want to add an
entry at the beginning of the macro that allows for the
month number to substitute throughout the macro. I know
how to do this in SAS but I have not been able to find a
way to do it in Visual Basic.

For example

Date = 12

filename "date_03_analysis" so everywhere the date is
referenced it would substitute 12 instead of the word date.

Thank you.



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
Variable substitution doobie Excel Discussion (Misc queries) 1 November 9th 09 05:36 PM
More than i substitution Otto Moehrbach Excel Discussion (Misc queries) 10 November 19th 07 11:50 PM
Substitution Mitchell Excel Discussion (Misc queries) 4 December 19th 06 07:22 PM
substitution Cossloffe Excel Discussion (Misc queries) 1 June 4th 06 07:10 AM
Substitution Boenerge Excel Discussion (Misc queries) 2 May 23rd 05 12:14 PM


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