Microsoft Excel Office Script

jerryr125

New Member
Joined
Sep 16, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi - I am using an Excel Workbook in the Microsoft Office 365 platform.

I am creating Microsoft Office Script to automate a process.
I would like to set a variable in the script to a value in the Excel Workbook from a specific sheet and cell.

Example:
In the Microsoft Office Script I have the variable "RowCounter01"
In my Workbook I have Sheet ("RDate") and in the Sheet a specific cell with a value (cell "J1").
How do I code the automated script to set the RowCounter01 variable to the value in RDate, cell J1 ?

If the value in J1 is 123 then RowCounter01 would be set to 123.
Any assistance is appreciated - thank you - jerryr125
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I suspect you mean: RowCounter01 = Sheets("RDate").Cells(1, "J")
 
Upvote 0

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

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