longestdrive
Programmer
Hi
I'm working on an export function from MS Project to Excel.
The export function works great. I have
and used this object numerous times throughout the code as long as range only points to once cell.
I want the xlrange object to select a number of cells and have used this code:
where TSV.count is effectively a column counter. The reason it's a minus column in the first offset is due to the current xlrange location beiung a cell on the right and i want it to select a number of cells to it's left. TSV count does stay within the boundaries of the sheet.
I get the error: Method 'Range' of object '_Global' failed.
Where am I going wrong?
this works (selecting the next cell to the right), just can't get xlrange to = a number of cells
Thank you
ld
I'm working on an export function from MS Project to Excel.
The export function works great. I have
Code:
dim xlrange = excel.range
I want the xlrange object to select a number of cells and have used this code:
Code:
Set xlRange = Range(xlRange.Offset(0, -TSV.Count), xlRange.Offset(0, 0))
I get the error: Method 'Range' of object '_Global' failed.
Where am I going wrong?
Code:
set xlrange = xlrange.offset(0,1)
Thank you
ld