Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Code instead of foumula.

When the input box is filled, just assihn the modified formula to the cell.
Assuming A1 is the cell:

newNum = ' number from input box
Range("A1").Formula = "='P:\NAP Office\VT-31 Classes\[VT31 FY 04-" _
& Format(newNum,"00") & ".xls]Tracker'!C9"

You may want to change the Format part with another pattern. The one above
will returns 01, 02, .. 32, for entry 1,2,32.

Regards,
Sebastien


"Erik" wrote:

I have the following formula in a couple of cells and want to use code instead.

='P:\NAP Office\VT-31 Classes\[VT31 FY 04-37.xls]Tracker'!C9

The formula refers to another workbook on another drive. The reason I want
to use code instead is that I want to be able to change the reference at the
04-37 portion of the formula through an input box to other numbers in the
same general format ie. 04-##. Any thoughts?
Erik

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
MAX Foumula carol Excel Discussion (Misc queries) 3 July 17th 08 04:27 PM
Problem with foumula Cliff Excel Worksheet Functions 1 April 6th 06 12:37 AM
Code instead of foumula. Erik Excel Programming 0 September 21st 04 07:01 PM
Code instead of foumula. Tom Ogilvy Excel Programming 0 September 21st 04 06:35 PM
Code instead of foumula. Erik Excel Programming 0 September 21st 04 05:53 PM


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