How to use VB to use info from one wkbk - open another and paste info on second workbook.

UMAKEMESIK

Active Member
Joined
Oct 3, 2005
Messages
378
Hello to all,

I have a workbook log that with each line detailing
info that was input from a seperate workbook.

on the log cell a1 has a hyperlink back to the original sheet.

When the original sheet was filled out and the user clicked a submit button
the sheet pulled certain infomation and opened a seperate workbook ( the log ) and
place all of that information on the next open line.

When i am on the log - the last cell in each line column 28 is called date Closed.

when the process manager opens the log and puts a date on column 28 stating
the process is complete I would like to
change directories open up the hyperlinked form ( the original sheet/wrkbook) - place today's date on cell c43
save the original sheet and close with the locked date

then save the log and close it all.

i also have a complete path......

i tried to hack something to wrap my brain around this one but could not finish

Code:
ChDir _
         "R:\General\SLZ\SloDesign\NPR FORMS\" & Range("B2") & "\"
'this is the folder path
    Workbooks.Open Filename:= _
        "R:\General\SLZ\SloDesign\NPR FORMS\" & Range("B2") & "\" & Range("E4") & " - " & Range("C4") & " - " & Range("A4") & ".xls"
'this is the complete path to the file name on the server - the ranges are pulled from the log
    Range("C43").Select
    ActiveSheet.PasteSpecial Format:="=TODAY()", Link:=False, _
    ActiveWorkbook.Close
    
        Application.ScreenUpdating = True

i can explain more or elaborate if needed.

thanks in advance for any help or suggestions.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top