Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Date Problem

Hi

The below is a path and file name where i am saving a
certain file to through VB:

Remit_Name = file_path & "\" & Supp_Name & " " & Trans_No
& " " & Format(Date, "ddmmmyy") & ".xls"

I am using a concatenate function somewhere else on the
sheet where i need to call this value from. Is there any
way of calling a VB variable from a worksheet cell?

For eg i want a formula to read:

=Concatenate(a1:, b76, Remit_Name)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Date Problem

Assuming Remit_Name is a public variable

Public function RName()
Application.Volitile
rName = Remit_Name
End sub

Place the above in a general/standard module, then you can use

=Concatenate(a1, b76, RName())

--
Regards,
Tom Ogilvy


"Edgar" wrote in message
...
Hi

The below is a path and file name where i am saving a
certain file to through VB:

Remit_Name = file_path & "\" & Supp_Name & " " & Trans_No
& " " & Format(Date, "ddmmmyy") & ".xls"

I am using a concatenate function somewhere else on the
sheet where i need to call this value from. Is there any
way of calling a VB variable from a worksheet cell?

For eg i want a formula to read:

=Concatenate(a1:, b76, Remit_Name)



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
date problem puiuluipui Excel Discussion (Misc queries) 11 November 4th 08 10:14 AM
Exel increment date problem wrt todays date. [email protected] Excel Worksheet Functions 1 November 11th 07 06:58 PM
Date Formula Problem - Leave date blank if Null Gayla Excel Worksheet Functions 5 April 24th 07 09:42 PM
Date problem cfi Excel Discussion (Misc queries) 0 February 1st 06 08:12 PM
Date problem using VBA Jean Mark New Users to Excel 3 July 28th 05 07:30 AM


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