Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Put Formula in VBA

I have a formula in a column that uses the text from a different
column to provide a value - however, I am hoping that if I use vb to
make the formula, I can enter text into the column the formula
references and therefore only need one column. Is this true? If so,
how would I use this formula in column B in vb to eliminate the need
for column D?

=+HYPERLINK("https://na7.salesforce.com/search/SearchResults?
searchType=1&sen=0&setLast=1&sbstr=" & D4,D4)

Thanks in advance for your help,

magmike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,522
Default Put Formula in VBA

On Friday, May 25, 2012 1:42:50 PM UTC-5, magmike wrote:
I have a formula in a column that uses the text from a different
column to provide a value - however, I am hoping that if I use vb to
make the formula, I can enter text into the column the formula
references and therefore only need one column. Is this true? If so,
how would I use this formula in column B in vb to eliminate the need
for column D?

=+HYPERLINK("https://na7.salesforce.com/search/SearchResults?
searchType=1&sen=0&setLast=1&sbstr=" & D4,D4)

Thanks in advance for your help,

magmike




On Friday, May 25, 2012 1:42:50 PM UTC-5, magmike wrote:
I have a formula in a column that uses the text from a different
column to provide a value - however, I am hoping that if I use vb to
make the formula, I can enter text into the column the formula
references and therefore only need one column. Is this true? If so,
how would I use this formula in column B in vb to eliminate the need
for column D?

=+HYPERLINK("https://na7.salesforce.com/search/SearchResults?
searchType=1&sen=0&setLast=1&sbstr=" & D4,D4)

Thanks in advance for your help,

magmike


FollowHyperlink Method
See AlsoApplies ToExampleSpecificsDisplays a cached document, if it’s already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application.

expression.FollowHyperlink(Address, SubAddress, NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo)
expression Required. An expression that returns a Workbook object.

Address Required String. The address of the target document.

SubAddress Optional Variant. The location within the target document. The default value is the empty string.

NewWindow Optional Variant. True to display the target application in a new window. The default value is False.

AddHistory Optional Variant. Not used. Reserved for future use.

ExtraInfo Optional Variant. A String or byte array that specifies additional information for HTTP to use to resolve the hyperlink. For example, you can use ExtraInfo to specify the coordinates of an image map, the contents of a form, or a FAT file name.

Method Optional Variant. Specifies the way ExtraInfo is attached. Can be one of the following MsoExtraInfoMethod constants.

MsoExtraInfoMethod type can be one of these MsoExtraInfoMethod constants.
msoMethodGet. ExtraInfo is a String that’s appended to the address.
msoMethodPost. ExtraInfo is posted as a String or byte array.

HeaderInfo Optional Variant. A String that specifies header information for the HTTP request. The defaut value is an empty string.

Example
This example loads the document at example.microsoft.com in a new window and adds it to the History folder.

ActiveWorkbook.FollowHyperlink Address:="http://example.microsoft.com", _
NewWindow:=True


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
Build formula using field values as text in the formula referencing another workbook solardirect Links and Linking in Excel 6 June 4th 12 10:47 PM
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula PJ[_3_] Excel Worksheet Functions 2 June 2nd 10 03:45 PM
Build excel formula using field values as text in the formula val kilbane Excel Worksheet Functions 2 April 18th 07 01:52 PM
Formula expected end of statement error, typing formula into cell as part of VBA macro [email protected] Excel Programming 1 July 20th 06 07:58 PM
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


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