Hi,
Greetings to all, I just start learning vba macros some weeks ago and it is pretty awesome I love it. Today I'm facing with the following issue hope you can help me out!
I'm trying to make a macro that send values from an specific cell to an external Textbox located in a different workbook. I tried a lot of methods but I simply cant get to the right formula or a way to call the Textbox control into my main workbook.
Right now I have the below code that just copy a cell value to other cell in a different workbook:
------ CODE ---------------------------------------------------
Sub cmdOK_Click()
Dim OriginalWorkBook As Workbook
Dim Source As Workbook
Const MyDir As String = "C:Test"
Set Source = Workbooks.Open(MyDir & "B.xlsm")
Source.Sheets("Sheet1").Activate
ActiveSheet.Range("C4") = Range("C4")
End Sub
------ END CODE ---------------------------------------------
Please find below a link with the excel spreadsheets that I'm using, copy these folders on "C:" in order for this macro to work.
http://www.mediafire.com/?9fp9at6amd9vlec
Let me know your thoughs! And thanks a lot in advance!
Greetings to all, I just start learning vba macros some weeks ago and it is pretty awesome I love it. Today I'm facing with the following issue hope you can help me out!
I'm trying to make a macro that send values from an specific cell to an external Textbox located in a different workbook. I tried a lot of methods but I simply cant get to the right formula or a way to call the Textbox control into my main workbook.
Right now I have the below code that just copy a cell value to other cell in a different workbook:
------ CODE ---------------------------------------------------
Sub cmdOK_Click()
Dim OriginalWorkBook As Workbook
Dim Source As Workbook
Const MyDir As String = "C:Test"
Set Source = Workbooks.Open(MyDir & "B.xlsm")
Source.Sheets("Sheet1").Activate
ActiveSheet.Range("C4") = Range("C4")
End Sub
------ END CODE ---------------------------------------------
Please find below a link with the excel spreadsheets that I'm using, copy these folders on "C:" in order for this macro to work.
http://www.mediafire.com/?9fp9at6amd9vlec
Let me know your thoughs! And thanks a lot in advance!