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

You still need to use the formula.

Just use code to change the formula itself

ans = Inputbox("Enter the last two digits for 04-##")
ans = Trim(ans)
if len(ans) < 2 or not isnumeric(ans) then
msgbox "Invalid entry"
exit sub
End if
sStr = Range("B9").formula
sStr = left(sStr,42) & ans & right(str,16)
Range("B9").Formula = sStr

--
Regards,
Tom Ogilvy




"Erik" wrote in message
...
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
WHAT IS THE MAX NUMBER OF "IF" CONDITIONS POSSIBLE IN ONE FOUMULA gallie Excel Worksheet Functions 1 March 28th 07 09:02 AM
WHAT IS THE MAX NUMBER OF "IF" CONDITIONS POSSIBLE IN ONE FOUMULA gallie Excel Worksheet Functions 2 March 28th 07 02:44 AM
WHAT IS THE MAX NUMBER OF "IF" CONDITIONS POSSIBLE IN ONE FOUMULA Stefi Excel Worksheet Functions 0 March 28th 07 01:56 AM
Problem with foumula Cliff Excel Worksheet Functions 1 April 6th 06 12:37 AM


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