Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell Variable from Excel.VBA Macro

$
0
0

Hi Guys!

I don't know if what i'm asking you is achievable.

I've learned how to pass variables/arguments from powershell to Excel/VBA Macro but i need to do the opposite thing.

This is an example of what  i want:

Powershell                                                                                         Excel/VBA Macro

$Input=1   ---------------------------------------------------------------->   Sub Macro(input)

...                                                                                                     ...

$excel.Run("Macro",$Input)                                                                Output=input +6

...                                                                                                     ...

$output (Expected 7)   <----------------------------------------------------  return Output

I don't know how to do this can you help me please?

A



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>