ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Date Problem (https://www.excelbanter.com/excel-programming/291615-date-problem.html)

Edgar[_3_]

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)

Tom Ogilvy

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)





All times are GMT +1. The time now is 06:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com