senthil murugn
New Member
Hi,
Creating a task list, where user feeds the task name, start date and no of days required(through form).
By using WorkDay.INTL end date is calculated and it is working fine, but when this is
copied to excel cell it goes with formula too. This is fine when new excel sheet is confined
to local system. But when email this to some other person formula cell becomes #REF error
due to holiday table is available only in source system.
Code is as follows
>>> use code - tags <<<
Need help in transfer of only the value and not the formula to excel. Tried in web but mostly its meant for row copy & paste.
Thanks & Regards
Senthil
Creating a task list, where user feeds the task name, start date and no of days required(through form).
By using WorkDay.INTL end date is calculated and it is working fine, but when this is
copied to excel cell it goes with formula too. This is fine when new excel sheet is confined
to local system. But when email this to some other person formula cell becomes #REF error
due to holiday table is available only in source system.
Code is as follows
>>> use code - tags <<<
Code:
Cells(Cell_No, 2).Value = Str1 & Str2
Cells(Cell_No, 3).Value = TaskTextBox.Value
Cells(Cell_No, 4).Value = AssignedToComboBox.Value
Cells(Cell_No, 5).Value = CDate(StartDateTextBox.Value)
Cells(Cell_No, 6).Value = DaysTextBox.Value
****************************************************************
************ Following lines needs to be fixed ****************
Cells(Cell_No, 7).Value = CDate(WorksheetFunction.WorkDay_Intl(Startdate, Days, 11, Range("Table4"))) ' goes with formula but needs only value
Cells(Cell_No, 7).Copy
Cells(Cell_No, 7).PasteSpecial xlPasteValues
************** End of Fixation Line ************************
**************************************************************
Cells(Cell_No, 8).Value = DevStatusComboBox.Value
Cells(Cell_No, 9).Value = DeliverableTextBox.Value
Cells(Cell_No, 10).Value = VerifyByComboBox.Value
Cells(Cell_No, 11).Value = VerifStaComboBox.Value
Need help in transfer of only the value and not the formula to excel. Tried in web but mostly its meant for row copy & paste.
Thanks & Regards
Senthil
Last edited by a moderator: